1 | <?php |
||
22 | class ProcessArticleRulesSubscriber implements EventSubscriberInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var RuleProcessorInterface |
||
26 | */ |
||
27 | private $ruleProcessor; |
||
28 | |||
29 | /** |
||
30 | * ProcessArticleRulesSubscriber constructor. |
||
31 | * |
||
32 | * @param RuleProcessorInterface $ruleProcessor |
||
33 | */ |
||
34 | 11 | public function __construct(RuleProcessorInterface $ruleProcessor) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 98 | public static function getSubscribedEvents() |
|
48 | |||
49 | /** |
||
50 | * @param ArticleEvent $event |
||
51 | */ |
||
52 | 9 | public function processRules(ArticleEvent $event) |
|
56 | } |
||
57 |