AsseticBundle\View\ViewHelperStrategy::helper PHP Method

helper() protected method

protected helper ( $path )
    protected function helper($path)
    {
        $extension = pathinfo($path, PATHINFO_EXTENSION);
        $extension = strtolower($extension);
        switch ($extension) {
            case 'js':
                $this->appendScript($path);
                break;
            case 'css':
                $this->appendStylesheet($path);
                break;
        }
    }