Skip to content

Commit

Permalink
Moved AppBundle config sections to proper bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
adampiotrowski committed Mar 9, 2016
1 parent a30aea7 commit aaf0ef9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,3 @@ well_commerce_app:
orm_configuration:
mapping: "@WellCommerceAppBundle/Resources/config/doctrine/Price.orm.yml"
entity: WellCommerce\Bundle\AppBundle\Entity\Price

fos_js_routing:
router: router.default

services:
doctrine.cache:
class: %doctrine_cache.file_system.class%
arguments: ["%kernel.root_dir%/cache/%kernel.environment%/doctrine"]

client.failure.handler:
class: WellCommerce\Bundle\ClientBundle\Handler\LoginFailureHandler
arguments:
- "@router"
- front.client.login
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<tag name="twig.extension"/>
</service>

<service id="client.failure.handler" class="WellCommerce\Bundle\ClientBundle\Handler\LoginFailureHandler">
<argument type="service" id="router"/>
<argument>front.client.login</argument>
</service>

<service id="client.orm.validator.unique" class="WellCommerce\Bundle\ClientBundle\Doctrine\Validator\Constraints\UniqueUsernameValidator">
<argument type="service" id="client.repository"/>
<argument type="service" id="router.helper"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="doctrine.cache" class="%doctrine_cache.file_system.class%">
<argument>%kernel.root_dir%/cache/%kernel.environment%/doctrine</argument>
</service>

<service id="doctrine.class_metadata.enhancer_collection" class="WellCommerce\Bundle\DoctrineBundle\Enhancer\ClassMetadata\ClassMetadataEnhancerCollection" />

<service id="doctrine.class_metadata.enhancer_traverser" class="WellCommerce\Bundle\DoctrineBundle\Enhancer\ClassMetadata\ClassMetadataEnhancerTraverser">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ well_commerce_routing:
orm_configuration:
mapping: "@WellCommerceRoutingBundle/Resources/config/doctrine/Route.orm.yml"
entity: WellCommerce\Bundle\RoutingBundle\Entity\Route


fos_js_routing:
router: router.default

0 comments on commit aaf0ef9

Please sign in to comment.