AsseticBundle\Cli\BuildCommand::execute PHP Method

execute() protected method

Executes the current command.
protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : null | integer
$input Symfony\Component\Console\Input\InputInterface An InputInterface instance
$output Symfony\Component\Console\Output\OutputInterface An OutputInterface instance
return null | integer null or 0 if everything went fine, or an error code
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $config = $this->assetic->getConfiguration();
        $config->setBuildOnRequest(true);
        $this->assetic->build();
        $this->assetic->getAssetWriter()->writeManagerAssets($this->assetic->getAssetManager());
    }