Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #130 from symfony-cmf/initialize_basepath
Browse files Browse the repository at this point in the history
added initializer to ensure the base path exists
  • Loading branch information
lsmith77 committed Aug 28, 2014
2 parents d5cd9c0 + 8562860 commit 31a7eef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getPersistenceNode()
->addDefaultsIfNotSet()
->canBeEnabled()
->children()
->scalarNode('route_basepath')->defaultValue('/cms/routes')->end()
->scalarNode('route_basepath')->defaultValue('/cms/routes')->cannotBeEmpty()->end()
->end()
->end() // phpcr
->end();
Expand Down
8 changes: 8 additions & 0 deletions Resources/config/phpcr-odm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,13 @@
<tag name="doctrine_phpcr.event_listener" event="onFlush"/>
<tag name="doctrine_phpcr.event_listener" event="endFlush"/>
</service>

<service id="cmf_routing_auto.initializer" class="Doctrine\Bundle\PHPCRBundle\Initializer\GenericInitializer">
<argument>CmfRoutingAutoBundle</argument>
<argument type="collection">
<argument>%cmf_routing_auto.persistence.phpcr.route_basepath%</argument>
</argument>
<tag name="doctrine_phpcr.initializer"/>
</service>
</services>
</container>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"symfony-cmf/routing-auto": "1.0.*",
"symfony-cmf/routing-bundle": "~1.2",
"symfony-cmf/core-bundle": "~1.1",
"symfony-cmf/core-bundle": "~1.2",
"aferrandini/urlizer": "1.0.*",
"symfony/config": "~2.2",
"jms/metadata": "1.5.*"
Expand Down

0 comments on commit 31a7eef

Please sign in to comment.