1 | <?php |
||
23 | final class OrmMenuProvider implements MenuProviderInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var MenuItemRepositoryInterface |
||
27 | */ |
||
28 | private $repository; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $internalCache = []; |
||
34 | |||
35 | 99 | /** |
|
36 | * MenuProvider constructor. |
||
37 | 99 | * |
|
38 | 99 | * @param MenuItemRepositoryInterface $repository |
|
39 | */ |
||
40 | public function __construct(MenuItemRepositoryInterface $repository) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function get($name, array $options = []) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function has($name, array $options = []) |
||
80 | |||
81 | private function getFromInternalCache($name) |
||
89 | |||
90 | private function addToInternalCache($name, $value) |
||
94 | } |
||
95 |