Created
July 12, 2012 15:55
-
-
Save havvg/3098997 to your computer and use it in GitHub Desktop.
Example tagged map services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Havvg\Bundle\DashboardBundle\DependencyInjection\Compiler; | |
use Havvg\Bundle\DRYBundle\DependencyInjection\Compiler\AbstractTaggedMapCompilerPass; | |
class DashboardPass extends AbstractTaggedMapCompilerPass | |
{ | |
protected $mapServiceTag = 'havvg_dashboard.boardlet'; | |
protected $targetServiceTag = 'havvg_dashboard.dashboard'; | |
protected $targetMethod = 'add'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
dashboard.default: | |
class: Havvg\Bundle\DashboardBundle\Dashboard\Dashboard | |
tags: | |
- { name: 'havvg_dashboard.dashboard', alias: 'default' } | |
boardlet.lead_distribution: | |
class: Ormigo\Bundle\ReportingBundle\Dashboard\Boardlet\LeadDistributionBoardlet | |
tags: | |
- { name: 'havvg_dashboard.boardlet', target: 'default' } | |
dashboard.business_intel: | |
class: Havvg\Bundle\DashboardBundle\Dashboard\Dashboard | |
tags: | |
- { name: 'havvg_dashboard.dashboard', alias: 'business_intel' } | |
boardlet.premium_accounts: | |
class: Ormigo\Bundle\ReportingBundle\Dashboard\Boardlet\PremiumAccountsBoardlet | |
tags: | |
- { name: 'havvg_dashboard.boardlet', target: 'business_intel' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will call
add
on eachDashboard
for allBoardlet
services on their respective target.