| 1 | <?php | ||
| 17 | class TinkerCommand extends Command | ||
| 18 | { | ||
| 19 | /** | ||
| 20 | * Command Name. | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $name = 'tinker'; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * The console command description. | ||
| 27 | * | ||
| 28 | * @var string | ||
| 29 | */ | ||
| 30 | protected $description = 'Interact with your application'; | ||
| 31 | |||
| 32 | protected $shell; | ||
| 33 | |||
| 34 | public function __construct(TinkerShell $shell) | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Performs the event. | ||
| 43 | */ | ||
| 44 | public function fire() | ||
| 45 |     { | ||
| 46 | $this->getApplication()->setCatchExceptions(false); | ||
| 47 | |||
| 48 |         $this->shell->setIncludes($this->argument('include'))->run(); | ||
| 49 | } | ||
| 50 | |||
| 51 | /** | ||
| 52 | * Performs the event. | ||
| 53 | */ | ||
| 54 | public function handle() | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Get the console command arguments. | ||
| 61 | * | ||
| 62 | * @return array | ||
| 63 | */ | ||
| 64 | protected function getArguments() | ||
| 70 | } | ||
| 71 |