public function getScriptEnqueuer() { if ($this->_scriptEnqueuer == null) { $this->getClassLoader()->loadClass('ffScriptEnqueuer'); if ($this->_configuration['script_minification'] == true) { $this->getClassLoader()->loadClass('ffScriptEnqueuerMinification'); $this->_scriptEnqueuer = new ffScriptEnqueuerMinification($this->getWPLayer(), $this->getScriptFactory(), $this->getMinificator()); } else { $this->_scriptEnqueuer = new ffScriptEnqueuer($this->getWPLayer(), $this->getScriptFactory(), $this->getFileSystem()); } $this->_scriptEnqueuer->setFrameworkScriptLoader($this->getFrameworkScriptLoader()); } return $this->_scriptEnqueuer; }
public function __construct($WPLayer, $scriptFactory, $minificator) { parent::__construct($WPLayer, $scriptFactory); $this->_setMinificator($minificator); }