예제 #1
0
 public function __construct($files = null)
 {
     parent::__construct();
     if (is_null($files)) {
         $files = new Filesystem();
     }
     $this->files = $files;
 }
예제 #2
0
 public function __construct(CommandGenerator $generator = null)
 {
     parent::__construct();
     $this->generator = $generator ?: new CommandGenerator($this);
 }