1 | <?php |
||
27 | abstract class BaseBreadcrumbMenuBlockService extends MenuBlockService |
||
28 | { |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $context; |
||
33 | |||
34 | /** |
||
35 | * @var FactoryInterface |
||
36 | */ |
||
37 | private $factory; |
||
38 | |||
39 | /** |
||
40 | * @param string $context |
||
41 | * @param string $name |
||
42 | * @param EngineInterface $templating |
||
43 | * @param MenuProviderInterface $menuProvider |
||
44 | * @param FactoryInterface $factory |
||
45 | */ |
||
46 | public function __construct($context, $name, EngineInterface $templating, MenuProviderInterface $menuProvider, FactoryInterface $factory) |
||
47 | { |
||
48 | parent::__construct($name, $templating, $menuProvider, array()); |
||
49 | |||
50 | $this->context = $context; |
||
51 | $this->factory = $factory; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Return true if current BlockService handles the given context. |
||
56 | * |
||
57 | * @param string $context |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function handleContext($context) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getName() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function configureSettings(OptionsResolver $resolver) |
||
78 | { |
||
79 | parent::configureSettings($resolver); |
||
80 | |||
81 | $resolver->setDefaults(array( |
||
82 | 'menu_template' => 'SonataSeoBundle:Block:breadcrumb.html.twig', |
||
83 | 'include_homepage_link' => true, |
||
84 | 'context' => false, |
||
85 | )); |
||
86 | } |
||
87 | |||
88 | /** |
||
89 | * @return FactoryInterface |
||
90 | */ |
||
91 | protected function getFactory() |
||
92 | { |
||
93 | return $this->factory; |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | protected function getContext() |
||
100 | { |
||
101 | return $this->context; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * Initialize breadcrumb menu. |
||
106 | * |
||
107 | * @param BlockContextInterface $blockContext |
||
108 | * |
||
109 | * @return ItemInterface |
||
110 | */ |
||
111 | protected function getRootMenu(BlockContextInterface $blockContext) |
||
136 | } |
||
137 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.