/**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct($composer)
 {
     switch ($class = get_class($composer)) {
         case 'Illuminate\\Support\\Composer':
         case 'Illuminate\\Foundation\\Composer':
             parent::__construct($composer);
             break;
         default:
             throw new \InvalidArgumentException('$composer must be an instance of Illuminate\\Support\\Composer or Illuminate\\Foundation\\Composer; ' . $class . ' provided');
     }
 }
Пример #2
0
 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct(Composer $composer)
 {
     parent::__construct($composer);
 }