예제 #1
0
 /**
  * boot the controller
  * 
  * @param AbstractBundle $bundle            
  */
 public function boot(AbstractBundle $bundle)
 {
     // load optional bootstrap
     $bootstrap = $bundle->getPath() . "/bootstrap.php";
     if (file_exists($bootstrap)) {
         include_once $bootstrap;
     }
     // load any plugins
     // @todo adjust this when Namespaced plugins are implemented
     \PluginUtil::loadPlugins($bundle->getPath() . "/plugins", "ModulePlugin_{$this->name}");
 }