Example #1
0
 /**
  * Setter method for the plugin property.
  *
  * @throws  Enlight_Exception
  * @param   string|Enlight_Plugin_Namespace $plugins
  * @return  Enlight_Controller_Front
  */
 public function setPlugins(Enlight_Plugin_Namespace $plugins = null)
 {
     if ($plugins === null) {
         $plugins = new Enlight_Plugin_Namespace_Loader('Controller');
         $plugins->addPrefixPath('Enlight_Controller_Plugins', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Plugins');
     }
     $this->plugins = $plugins;
     return $this;
 }