| 1 | <?php |
||
| 24 | abstract class EnhancerAbstractStrategy implements StrategyInterface |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Key used to store the real route strategy on metadata. |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | |||
| 33 | protected $metadataStrategyKey = "strategy"; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | * @throws BadRouteException |
||
| 38 | */ |
||
| 39 | |||
| 40 | public function call(Route $route) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Manipulate route object before the dispatch. |
||
| 53 | * |
||
| 54 | * @param Route $route |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | |||
| 58 | abstract public function enhance(Route $route); |
||
| 59 | |||
| 60 | } |
||
| 61 |