예제 #1
0
 public function getApplicationInstance()
 {
     if ($this->_applicationInstance == null) {
         if ($this->_applicationConfigFile->getContext()->exists()) {
             define('APPLICATION_PATH', $this->_applicationDirectory->getPath());
             $applicationOptions = array();
             $applicationOptions['config'] = $this->_applicationConfigFile->getPath();
             $this->_applicationInstance = new \Zend\Application\Application('development', $applicationOptions);
         }
     }
     return $this->_applicationInstance;
 }