src/AssetContainer.php
protected function write($name, $type, $source, $dependencies = array())
    {
        $types = array(
            'script' => 'script',
            'style'  => 'style',
            'js'     => 'script',
            'css'    => 'style'
        );

        if (array_key_exists($type, $types))
        {
            $type = $types[$type];

            $this->register($type, $name, $source, $dependencies, array());
        }

        return $this;
    }
protected function write($name, $type, $source, $dependencies = array())
    {
        $types = array(
            'script' => 'script',
            'style'  => 'style',
            'js'     => 'script',
            'css'    => 'style'
        );

        if (array_key_exists($type, $types))
        {
            $type = $types[$type];

            $this->register($type, $name, $source, $dependencies, array());
        }

        return $this;
    }
protected function write ( $ name , $ type , $ source , $ dependencies = array ( ) ) { $ types = array ( 'script' => 'script' , 'style' => 'style' , 'js' => 'script' , 'css' => 'style' ) ; if ( array_key_exists ( $ type , $ types ) ) { $ type = $ types [ $ type ] ; $ this -> register ( $ type , $ name , $ source , $ dependencies , array ( ) ) ; } return $ this ; }
Write a content to the container.

@param  string $name
@param  string string
@param  string $source
@param  array  $dependencies
@return AssetContainer
Write a content to the container .