Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes deprecated *.class parameters #1

Merged
merged 1 commit into from
Jun 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions src/DAMA/MenuBundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
parameters:
dama_menu.twig.menu_extension.class: DAMA\MenuBundle\Twig\MenuExtension
dama_menu.node_factory.class: DAMA\MenuBundle\Node\NodeFactory
dama_menu.menu_factory.class: DAMA\MenuBundle\Menu\MenuFactory
dama_menu.menu_config_provider.class: DAMA\MenuBundle\MenuConfig\MenuConfigProvider
dama_menu.menu_tree_traverser.class: DAMA\MenuBundle\MenuTree\MenuTreeTraverser
dama_menu.node_visitor.filter.class: DAMA\MenuBundle\NodeVisitor\NodeFilter
dama_menu.node_visitor.activator.class: DAMA\MenuBundle\NodeVisitor\NodeActivator
dama_menu.node_visitor.node_route_propagator.class: DAMA\MenuBundle\NodeVisitor\NodeRoutePropagator

services:
dama_menu.twig.menu_extension:
class: "%dama_menu.twig.menu_extension.class%"
class: DAMA\MenuBundle\Twig\MenuExtension
arguments: ["@service_container"]
tags:
- { name: twig.extension }

dama_menu.node_factory:
class: "%dama_menu.node_factory.class%"
class: DAMA\MenuBundle\Node\NodeFactory

dama_menu.menu_factory:
class: "%dama_menu.menu_factory.class%"
class: DAMA\MenuBundle\Menu\MenuFactory
arguments: ["@dama_menu.menu_config_provider", "@dama_menu.menu_tree_traverser"]

dama_menu.menu_config_provider:
class: "%dama_menu.menu_config_provider.class%"
class: DAMA\MenuBundle\MenuConfig\MenuConfigProvider

dama_menu.menu_tree_traverser:
class: "%dama_menu.menu_tree_traverser.class%"
class: DAMA\MenuBundle\MenuTree\MenuTreeTraverser

dama_menu.node_visitor.filter:
class: "%dama_menu.node_visitor.filter.class%"
class: DAMA\MenuBundle\NodeVisitor\NodeFilter
arguments: ["@security.token_storage", "@security.authorization_checker"]
tags:
- { name: dama_menu.node_visitor, priority: 1 }

dama_menu.node_visitor.activator:
class: "%dama_menu.node_visitor.activator.class%"
class: DAMA\MenuBundle\NodeVisitor\NodeActivator
arguments: ["@request_stack"]
tags:
- { name: dama_menu.node_visitor, priority: 2 }

dama_menu.node_visitor.node_route_propagator:
class: "%dama_menu.node_visitor.node_route_propagator.class%"
class: DAMA\MenuBundle\NodeVisitor\NodeRoutePropagator
tags:
- { name: dama_menu.node_visitor, priority: 3 }