public function dumpAsset($name, OutputInterface $stdout)
    {
        $asset = $this->am->get($name);
        $formula = $this->am->hasFormula($name) ? $this->am->getFormula($name) : array();

        // start by dumping the main asset
        $this->doDump($asset, $stdout);

        $debug = isset($formula[2]['debug']) ? $formula[2]['debug'] : $this->am->isDebug();
        $combine = isset($formula[2]['combine']) ? $formula[2]['combine'] : !$debug;

        // dump each leaf if no combine
        if (!$combine) {
            foreach ($asset as $leaf) {
                $this->doDump($leaf, $stdout);
            }
        }
    }
public function dumpAsset($name, OutputInterface $stdout)
    {
        $asset = $this->am->get($name);
        $formula = $this->am->hasFormula($name) ? $this->am->getFormula($name) : array();

        // start by dumping the main asset
        $this->doDump($asset, $stdout);

        $debug = isset($formula[2]['debug']) ? $formula[2]['debug'] : $this->am->isDebug();
        $combine = isset($formula[2]['combine']) ? $formula[2]['combine'] : !$debug;

        // dump each leaf if no combine
        if (!$combine) {
            foreach ($asset as $leaf) {
                $this->doDump($leaf, $stdout);
            }
        }
    }
public function dumpAsset ( $ name , OutputInterface $ stdout ) { $ asset = $ this -> am -> get ( $ name ) ; $ formula = $ this -> am -> hasFormula ( $ name ) ? $ this -> am -> getFormula ( $ name ) : array ( ) ; // start by dumping the main asset $ this -> doDump ( $ asset , $ stdout ) ; $ debug = isset ( $ formula [ 2 ] [ 'debug' ] ) ? $ formula [ 2 ] [ 'debug' ] : $ this -> am -> isDebug ( ) ; $ combine = isset ( $ formula [ 2 ] [ 'combine' ] ) ? $ formula [ 2 ] [ 'combine' ] : ! $ debug ; // dump each leaf if no combine if ( ! $ combine ) { foreach ( $ asset as $ leaf ) { $ this -> doDump ( $ leaf , $ stdout ) ; } } }
Writes an asset.

If the application or asset is in debug mode, each leaf asset will be
dumped as well.

@param string          $name   An asset name
@param OutputInterface $stdout The command output
Writes an asset .