1: <?php
2:
3: namespace PHPixie\HTTPProcessors\Processor\Dispatcher\Registry;
4:
5: class Attribute extends \PHPixie\Processors\Processor\Dispatcher\Registry
6: {
7: protected $attributeName;
8:
9: public function __construct($processorRegistry, $attributeName)
10: {
11: $this->attributeName = $attributeName;
12: parent::__construct($processorRegistry);
13: }
14:
15: protected function getProcessorNameFor($httpRequest)
16: {
17: return $httpRequest->attributes()->get($this->attributeName);
18: }
19: }