Skip to content

Commit 963e560

Browse files
committed
[service] Inject the routing into the service container
1 parent d15188b commit 963e560

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CHANGELOG
22
=========
33

4+
* inject the routing into the service container
45
* decoupled routing cache key generation to make it customizable
56
* optimized sfCompileConfigHandler and added unit tests
67
* added possibility to use sfAPCCache without APC (same as sfNoCache)

lib/task/sfCommandApplicationTask.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ protected function getServiceContainer()
200200
$this->serviceContainer = new $class();
201201
$this->serviceContainer->setService('sf_event_dispatcher', $this->dispatcher);
202202
$this->serviceContainer->setService('sf_formatter', $this->formatter);
203+
$this->serviceContainer->setService('sf_routing', $this->getRouting());
203204
}
204205

205206
return $this->serviceContainer;

lib/util/sfContext.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ public function getServiceContainer()
450450
$this->factories['serviceContainer']->setService('sf_event_dispatcher', $this->configuration->getEventDispatcher());
451451
$this->factories['serviceContainer']->setService('sf_formatter', new sfFormatter());
452452
$this->factories['serviceContainer']->setService('sf_user', $this->getUser());
453+
$this->factories['serviceContainer']->setService('sf_routing', $this->getRouting());
453454
}
454455

455456
return $this->factories['serviceContainer'];

0 commit comments

Comments
 (0)