Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #90 from andrewmy/service_alias
Browse files Browse the repository at this point in the history
Allow injecting the service into Controller constructor for autowiring
  • Loading branch information
Sam Partington authored May 1, 2018
2 parents 8bd9603 + 61d8b7b commit 07ef1a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Resources/config/breadcrumbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
<services>

<!-- Our service, for controllers -->
<service id="white_october_breadcrumbs" class="WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs" public="true">
<service id="WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs" class="WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs" public="false">
<call method="setRouter">
<argument type="service" id="router" />
</call>
<tag name="kernel.reset" method="clear" />
</service>
<service id="white_october_breadcrumbs" alias="WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs" public="true">
</service>

<!-- Templating helper -->
<service id="white_october_breadcrumbs.helper" class="WhiteOctober\BreadcrumbsBundle\Templating\Helper\BreadcrumbsHelper" public="true">
Expand Down

0 comments on commit 07ef1a3

Please sign in to comment.