2018-11-05 09:26:30 +08:00

25 lines
611 B
PHP

<?php
namespace Dipper\Console\Components;
/**
* @author HollyTeng <n.haoyuan@gmail.com>
*/
class Service extends Component
{
public function __construct($title, $file, $realPath, $relativePath, Domain $domain = null, $content = '')
{
$className = str_replace(' ', '', $title) . 'Service';
$this->setAttributes([
'title' => $title,
'className' => $className,
'domain' => $domain,
'file' => $file,
'realPath' => $realPath,
'relativePath' => $relativePath,
'content' => $content,
]);
}
}