File tree Expand file tree Collapse file tree 8 files changed +55
-6
lines changed
Expand file tree Collapse file tree 8 files changed +55
-6
lines changed Original file line number Diff line number Diff line change 55 'DoctrineModule ' ,
66 'DoctrineORMModule ' ,
77 'ZfcTwitterBootstrap ' ,
8+ 'CargoBackend ' ,
9+ 'RoutingService ' ,
810 'Application ' ,
911 ),
1012
Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ public function onBootstrap(MvcEvent $e)
2323
2424 public function getConfig ()
2525 {
26- $ config = include __DIR__ . '/config/module.config.php ' ;
27- $ config ['locations ' ] = include __DIR__ . '/config/locations.php ' ;
28- $ config ['itineraries ' ] = include __DIR__ . '/config/itineraries.php ' ;
29- return $ config ;
26+ return include __DIR__ . '/config/module.config.php ' ;
3027 }
3128
3229 public function getAutoloaderConfig ()
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Zend Framework (http://framework.zend.com/)
4+ *
5+ * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
6+ * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7+ * @license http://framework.zend.com/license/new-bsd New BSD License
8+ */
9+
10+ namespace RoutingService ;
11+
12+ use Zend \Mvc \ModuleRouteListener ;
13+ use Zend \Mvc \MvcEvent ;
14+
15+ class Module
16+ {
17+ public function onBootstrap (MvcEvent $ e )
18+ {
19+ $ eventManager = $ e ->getApplication ()->getEventManager ();
20+ $ moduleRouteListener = new ModuleRouteListener ();
21+ $ moduleRouteListener ->attach ($ eventManager );
22+ }
23+
24+ public function getConfig ()
25+ {
26+ $ config = include __DIR__ . '/config/module.config.php ' ;
27+ $ config ['locations ' ] = include __DIR__ . '/config/locations.php ' ;
28+ $ config ['itineraries ' ] = include __DIR__ . '/config/itineraries.php ' ;
29+ return $ config ;
30+ }
31+
32+ public function getAutoloaderConfig ()
33+ {
34+ return array (
35+ 'Zend\Loader\StandardAutoloader ' => array (
36+ 'namespaces ' => array (
37+ __NAMESPACE__ => __DIR__ . '/src/ ' . __NAMESPACE__ ,
38+ ),
39+ ),
40+ );
41+ }
42+ }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ <?php
2+ return array (
3+ 'service_manager ' => array (
4+ 'factories ' => array (
5+ 'routing_service ' => 'RoutingService\Service\RoutingServiceFactory ' ,
6+ ),
7+ ),
8+ );
Original file line number Diff line number Diff line change 99 * Date: 01.03.14 - 22:35
1010 */
1111
12- namespace Application \ Service ;
12+ namespace RoutingService ;
1313
1414use Application \Domain \Model \Cargo \Itinerary ;
1515use Application \Domain \Model \Cargo \Leg ;
Original file line number Diff line number Diff line change 99 * Date: 01.03.14 - 22:49
1010 */
1111
12- namespace Application \ Service ;
12+ namespace RoutingService ;
1313
1414use Zend \ServiceManager \FactoryInterface ;
1515use Zend \ServiceManager \ServiceLocatorInterface ;
You can’t perform that action at this time.
0 commit comments