Skip to content

Commit

Permalink
Merge pull request #309 from Kunstmaan/feature/allow-service-overrides
Browse files Browse the repository at this point in the history
allow class overrides in admin bundle
  • Loading branch information
jockri committed May 23, 2014
2 parents 0fdc297 + 7425afb commit 028d44f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
parameters:
kunstmaan_admin.menubuilder.class: 'Kunstmaan\AdminBundle\Helper\Menu\MenuBuilder'
kunstmaan_admin.apply_acl_changeset.listener.class: 'Kunstmaan\AdminBundle\EventListener\ApplyAclChangesetListener'
kunstmaan_admin.login.listener.class: 'Kunstmaan\AdminBundle\EventListener\LoginListener'
kunstmaan_admin.admin_locale.listener.class: 'Kunstmaan\AdminBundle\EventListener\AdminLocaleListener'
kunstmaan_admin.acl.helper.class: 'Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper'
kunstmaan_admin.acl.native.helper.class: 'Kunstmaan\AdminBundle\Helper\Security\Acl\AclNativeHelper'
kunstmaan_admin.clone.listener.class: 'Kunstmaan\AdminBundle\EventListener\CloneListener'

services:
kunstmaan_admin.menubuilder:
Expand All @@ -19,13 +24,13 @@ services:
- { name: 'kunstmaan_admin.menu.adaptor' }

kunstmaan_admin.login.listener:
class: Kunstmaan\AdminBundle\EventListener\LoginListener
class: "%kunstmaan_admin.login.listener.class%"
arguments: ["@kunstmaan_admin.logger", "@kunstmaan_admin.versionchecker"]
tags:
- { name: 'kernel.event_listener', event: 'security.interactive_login' }

kunstmaan_admin.adminLocale.listener:
class: Kunstmaan\AdminBundle\EventListener\AdminLocaleListener
kunstmaan_admin.admin_locale.listener:
class: "%kunstmaan_admin.admin_locale.listener.class%"
arguments: ["@security.context", "@translator", "%kuma_admin.default_admin_locale%"]
tags:
- { name: 'kernel.event_listener', event: 'kernel.request', method: 'onKernelRequest' }
Expand Down Expand Up @@ -58,11 +63,11 @@ services:
- { name: 'twig.extension' }

kunstmaan_admin.acl.helper:
class: Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper
class: "%kunstmaan_admin.acl.helper.class%"
arguments: ["@doctrine.orm.entity_manager", "@security.context", "@security.role_hierarchy"]

kunstmaan_admin.acl.native.helper:
class: Kunstmaan\AdminBundle\Helper\Security\Acl\AclNativeHelper
class: "%kunstmaan_admin.acl.native.helper.class%"
arguments: ["@doctrine.orm.entity_manager", "@security.context", "@security.role_hierarchy"]

kunstmaan_admin.permissionadmin:
Expand All @@ -74,7 +79,7 @@ services:
arguments: ["@doctrine.orm.entity_manager", "@event_dispatcher"]

kunstmaan_admin.clone.listener:
class: Kunstmaan\AdminBundle\EventListener\CloneListener
class: "%kunstmaan_admin.clone.listener.class%"
tags:
- { name: kernel.event_listener, event: kunstmaan_admin.onDeepCloneAndSave, method: onDeepCloneAndSave }

Expand Down

0 comments on commit 028d44f

Please sign in to comment.