equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Application |
16 * @package Zend_Application |
17 * @subpackage Bootstrap |
17 * @subpackage Bootstrap |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Bootstrap.php 20885 2010-02-03 19:33:59Z matthew $ |
20 * @version $Id: Bootstrap.php 25073 2012-11-06 19:31:53Z rob $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * Concrete base class for bootstrap classes |
24 * Concrete base class for bootstrap classes |
25 * |
25 * |
27 * |
27 * |
28 * @uses Zend_Application_Bootstrap_Bootstrap |
28 * @uses Zend_Application_Bootstrap_Bootstrap |
29 * @category Zend |
29 * @category Zend |
30 * @package Zend_Application |
30 * @package Zend_Application |
31 * @subpackage Bootstrap |
31 * @subpackage Bootstrap |
32 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 */ |
34 */ |
35 class Zend_Application_Bootstrap_Bootstrap |
35 class Zend_Application_Bootstrap_Bootstrap |
36 extends Zend_Application_Bootstrap_BootstrapAbstract |
36 extends Zend_Application_Bootstrap_BootstrapAbstract |
37 { |
37 { |
118 * @return Zend_Loader_Autoloader_Resource |
118 * @return Zend_Loader_Autoloader_Resource |
119 */ |
119 */ |
120 public function getResourceLoader() |
120 public function getResourceLoader() |
121 { |
121 { |
122 if ((null === $this->_resourceLoader) |
122 if ((null === $this->_resourceLoader) |
123 && (false !== ($namespace = $this->getAppNamespace())) |
123 && (false != ($namespace = $this->getAppNamespace())) |
124 ) { |
124 ) { |
125 $r = new ReflectionClass($this); |
125 $r = new ReflectionClass($this); |
126 $path = $r->getFileName(); |
126 $path = $r->getFileName(); |
127 $this->setResourceLoader(new Zend_Application_Module_Autoloader(array( |
127 $this->setResourceLoader(new Zend_Application_Module_Autoloader(array( |
128 'namespace' => $namespace, |
128 'namespace' => $namespace, |