/** * Handle the command. */ public function handle() { if ($this->extension->getLoader() === null) { $this->extension->setLoader(substr(get_class($this->extension), 0, -9) . 'Loader@handle'); // Replace "Extension with Loader@handle" } }
/** * Handle the command. * * @param Container $container */ public function handle(Container $container) { $container->call($this->extension->getLoader(), ['extension' => $this->extension]); }