Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
webbingbrasil/core-module / Console / PublishThemeAssetsCommand.php
Size: Mime:
<?php
/**
 * Created by PhpStorm.
 * User: danilo
 * Date: 18/12/15
 * Time: 10:56
 */
namespace Modules\Core\Console;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
class PublishThemeAssetsCommand extends Command
{
    protected $name = 'webbing:publish:theme';
    protected $description = 'Publish theme assets';
    public function fire()
    {
        $theme = $this->argument('theme', null);
        if (!empty($theme)) {
            $this->call('themes:publish', ['theme' => $this->argument('theme')]);
        } else {
            $this->call('themes:publish');
        }
    }
    protected function getArguments()
    {
        return [
            ['theme', InputArgument::OPTIONAL, 'Name of the theme you wish to publish']
        ];
    }
}