| @@ 30-47 (lines=18) @@ | ||
| 27 | return include __DIR__ . '/config/module.config.php'; |
|
| 28 | } |
|
| 29 | ||
| 30 | public function getAutoloaderConfig() |
|
| 31 | { |
|
| 32 | return array( |
|
| 33 | 'Zend\Loader\ClassMapAutoloader' => [ |
|
| 34 | __DIR__ . '/src/autoload_classmap.php', |
|
| 35 | [ |
|
| 36 | // We need this filter for initial user creation. |
|
| 37 | 'Auth\Entity\Filter\CredentialFilter' => __DIR__ . '/../Auth/src/Auth/Entity/Filter/CredentialFilter.php', |
|
| 38 | ], |
|
| 39 | ], |
|
| 40 | 'Zend\Loader\StandardAutoloader' => array( |
|
| 41 | 'namespaces' => array( |
|
| 42 | __NAMESPACE__ => __DIR__ . '/src' /* . __NAMESPACE__*/, |
|
| 43 | __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test', |
|
| 44 | ), |
|
| 45 | ), |
|
| 46 | ); |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Listen to the bootstrap event. |
|
| @@ 49-62 (lines=14) @@ | ||
| 46 | * |
|
| 47 | * @return array |
|
| 48 | */ |
|
| 49 | public function getAutoloaderConfig() |
|
| 50 | { |
|
| 51 | return array( |
|
| 52 | 'Zend\Loader\ClassMapAutoloader' => [ |
|
| 53 | __DIR__ . '/src/autoload_classmap.php' |
|
| 54 | ], |
|
| 55 | 'Zend\Loader\StandardAutoloader' => array( |
|
| 56 | 'namespaces' => array( |
|
| 57 | __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
| 58 | __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test', |
|
| 59 | ), |
|
| 60 | ), |
|
| 61 | ); |
|
| 62 | } |
|
| 63 | ||
| 64 | public function onBootstrap(MvcEvent $e) |
|
| 65 | { |
|
| @@ 168-182 (lines=15) @@ | ||
| 165 | * |
|
| 166 | * @return array |
|
| 167 | */ |
|
| 168 | public function getAutoloaderConfig() |
|
| 169 | { |
|
| 170 | return array( |
|
| 171 | 'Zend\Loader\ClassMapAutoloader' => [ |
|
| 172 | __DIR__ . '/src/autoload_classmap.php' |
|
| 173 | ], |
|
| 174 | 'Zend\Loader\StandardAutoloader' => array( |
|
| 175 | 'namespaces' => array( |
|
| 176 | __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
| 177 | 'CoreTest' => __DIR__ . '/test/' . 'CoreTest', |
|
| 178 | 'CoreTestUtils' => __DIR__ . '/test/CoreTestUtils', |
|
| 179 | ), |
|
| 180 | ), |
|
| 181 | ); |
|
| 182 | } |
|
| 183 | } |
|
| 184 | ||