src/Modules/Assets/AssetsCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('Start compiling assets: ' . date('Y-m-d H:i:s'));

        /** @var \Nameless\Core\Application $app */
        $app = $this->getApplication();
        /** @var \Nameless\Core\Container $app */
        $container = $app->getContainer();

        $container['environment'] = 'test';

        $assets     = $container['assets'];
        $dispatcher = $container['assets.dispatcher'];

        $altPackage = $input->getOption('package');
        if ($altPackage) {
            $this->compilePackage($altPackage, $assets['packages'][$altPackage], $assets, $dispatcher, $output);
        } else {
            foreach ($assets['packages'] as $package => $libs) {
                $this->compilePackage($package, $libs, $assets, $dispatcher, $output);
            }
        }

        $output->writeln("End compiling assets.\n");

        return null;
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('Start compiling assets: ' . date('Y-m-d H:i:s'));

        /** @var \Nameless\Core\Application $app */
        $app = $this->getApplication();
        /** @var \Nameless\Core\Container $app */
        $container = $app->getContainer();

        $container['environment'] = 'test';

        $assets     = $container['assets'];
        $dispatcher = $container['assets.dispatcher'];

        $altPackage = $input->getOption('package');
        if ($altPackage) {
            $this->compilePackage($altPackage, $assets['packages'][$altPackage], $assets, $dispatcher, $output);
        } else {
            foreach ($assets['packages'] as $package => $libs) {
                $this->compilePackage($package, $libs, $assets, $dispatcher, $output);
            }
        }

        $output->writeln("End compiling assets.\n");

        return null;
    }
@param InputInterface  $input
@param OutputInterface $output

@return null