App\Console\Commands\SkinMake::getPlugin PHP 메소드

getPlugin() 보호된 메소드

getTargetPlugin
protected getPlugin ( ) : PluginEntity
리턴 Xpressengine\Plugin\PluginEntity
    protected function getPlugin()
    {
        $path = $this->argument('path');
        list($plugin, $path) = explode('/', $path, 2);
        $plugin = app('xe.plugin')->getPlugin($plugin);
        if ($plugin === null) {
            throw new \Exception("Unable to find a plugin to locate the skin file. plugin[{$plugin}] is not found.");
        }
        return $plugin;
    }