AsseticBundle\Cli\SetupCommand::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();
        $mode = null !== ($mode = $config->getUmask()) ? $mode : 0775;
        if (!$this->createPath($output, 'Cache', $config->getCachePath(), $mode)) {
            return 1;
        }
        if (!$this->createPath($output, 'Web', $config->getWebPath(), $mode)) {
            return 1;
        }
        return 0;
    }