Core/Framework/Core.php
private function processAssets()
    {
        $js = $this->assetmanager->getAssetHandler('js');

        $afh = new \Core\Asset\AssetFileHandler();
        $afh->setFilename($this->config->get('Core', 'dir.cache') . '/script.js');
        $afh->setTTL($this->config->get('Core', 'cache.ttl.js'));

        $js->setFileHandler($afh);

        $css = $this->assetmanager->getAssetHandler('css');

        $theme = $this->config->get('Core', 'style.theme.name');

        $css->addProcessor(new \Core\Asset\Processor\ReplaceProcessor('../fonts/', '../Themes/' . $theme . '/fonts/'));
        $css->addProcessor(new \Core\Asset\Processor\ReplaceProcessor('../img/', '../Themes/' . $theme . '/img/'));

        $afh = new \Core\Asset\AssetFileHandler();
        $afh->setFilename($this->config->get('Core', 'dir.cache') . '/style.css');
        $afh->setTTL($this->config->get('Core', 'cache.ttl.css'));

        $css->setFileHandler($afh);

        foreach ($this->apps as $app) {
            foreach ($app->javascript as $aio) {
                $js->addObject($aio);
            }

            foreach ($app->css as $aio) {
                $css->addObject($aio);
            }
        }

        // Process assets
        $this->assetmanager->process();
    }
private function processAssets()
    {
        $js = $this->assetmanager->getAssetHandler('js');

        $afh = new \Core\Asset\AssetFileHandler();
        $afh->setFilename($this->config->get('Core', 'dir.cache') . '/script.js');
        $afh->setTTL($this->config->get('Core', 'cache.ttl.js'));

        $js->setFileHandler($afh);

        $css = $this->assetmanager->getAssetHandler('css');

        $theme = $this->config->get('Core', 'style.theme.name');

        $css->addProcessor(new \Core\Asset\Processor\ReplaceProcessor('../fonts/', '../Themes/' . $theme . '/fonts/'));
        $css->addProcessor(new \Core\Asset\Processor\ReplaceProcessor('../img/', '../Themes/' . $theme . '/img/'));

        $afh = new \Core\Asset\AssetFileHandler();
        $afh->setFilename($this->config->get('Core', 'dir.cache') . '/style.css');
        $afh->setTTL($this->config->get('Core', 'cache.ttl.css'));

        $css->setFileHandler($afh);

        foreach ($this->apps as $app) {
            foreach ($app->javascript as $aio) {
                $js->addObject($aio);
            }

            foreach ($app->css as $aio) {
                $css->addObject($aio);
            }
        }

        // Process assets
        $this->assetmanager->process();
    }
private function processAssets ( ) { $ js = $ this -> assetmanager -> getAssetHandler ( 'js' ) ; $ afh = new \ Core \ Asset \ AssetFileHandler ( ) ; $ afh -> setFilename ( $ this -> config -> get ( 'Core' , 'dir.cache' ) . '/script.js' ) ; $ afh -> setTTL ( $ this -> config -> get ( 'Core' , 'cache.ttl.js' ) ) ; $ js -> setFileHandler ( $ afh ) ; $ css = $ this -> assetmanager -> getAssetHandler ( 'css' ) ; $ theme = $ this -> config -> get ( 'Core' , 'style.theme.name' ) ; $ css -> addProcessor ( new \ Core \ Asset \ Processor \ ReplaceProcessor ( '../fonts/' , '../Themes/' . $ theme . '/fonts/' ) ) ; $ css -> addProcessor ( new \ Core \ Asset \ Processor \ ReplaceProcessor ( '../img/' , '../Themes/' . $ theme . '/img/' ) ) ; $ afh = new \ Core \ Asset \ AssetFileHandler ( ) ; $ afh -> setFilename ( $ this -> config -> get ( 'Core' , 'dir.cache' ) . '/style.css' ) ; $ afh -> setTTL ( $ this -> config -> get ( 'Core' , 'cache.ttl.css' ) ) ; $ css -> setFileHandler ( $ afh ) ; foreach ( $ this -> apps as $ app ) { foreach ( $ app -> javascript as $ aio ) { $ js -> addObject ( $ aio ) ; } foreach ( $ app -> css as $ aio ) { $ css -> addObject ( $ aio ) ; } } // Process assets $ this -> assetmanager -> process ( ) ; }
Processes asset handlers and their contents
Processes asset handlers and their contents