Example #1
0
 /**
  * initialized() - This will initialize the client for use
  *
  */
 public function initialize()
 {
     // if its already initialized, no need to initialize again
     if ($this->_isInitialized) {
         return;
     }
     // run any preInit
     $this->_preInit();
     $manifest = $this->_registry->getManifestRepository();
     $manifest->addManifest(new Manifest());
     // setup the debug log
     if (!$this->_debugLogger instanceof Log\Logger) {
         $this->_debugLogger = new Log\Logger(new Log\Writer\Null());
     }
     // let the loader load, then the repositories process whats been loaded
     $this->_registry->getLoader()->load();
     // process the action repository
     $this->_registry->getActionRepository()->process();
     // process the provider repository
     $this->_registry->getProviderRepository()->process();
     // process the manifest repository
     $this->_registry->getManifestRepository()->process();
     if ($this instanceof Interactive\InteractiveOutput) {
         $this->_registry->getResponse()->setContentCallback(array($this, 'handleInteractiveOutput'));
     }
 }