| 1 | <?php |
||
| 7 | class HeaderAttributesProvider implements AttributesInjectionProviderInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var RequestStack |
||
| 11 | */ |
||
| 12 | protected $requestStack; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | protected $enabled; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param RequestStack $requestStack |
||
| 21 | * @param bool $enabled |
||
| 22 | */ |
||
| 23 | public function __construct(RequestStack $requestStack, $enabled = false) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function isEnabled() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function getAttributes() |
||
| 48 | } |
||
| 49 |