/** * 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" } }