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

Allow injecting the service into Controller constructor for autowiring #90

Merged
merged 3 commits into from
May 1, 2018
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
4 changes: 3 additions & 1 deletion Resources/config/breadcrumbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
<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>
</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