| 1 | <?php |
||
| 11 | class PathDeducer |
||
| 12 | { |
||
| 13 | private $nameParser; |
||
| 14 | private $pathExpander; |
||
| 15 | private $logicalNames = array(); |
||
| 16 | private $defaultLogicalName; |
||
| 17 | |||
| 18 | public function __construct(TemplateNameParserInterface $nameParser, PathExpander $pathExpander, array $logicalNames, $defaultLogicalName) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the path corresponding to the specified view name |
||
| 28 | * |
||
| 29 | * @param string $logicalName A logical view name (i.e FooBundle:Bar:baz.html.twig) |
||
| 30 | * |
||
| 31 | * @return string The path of the view |
||
| 32 | */ |
||
| 33 | public function deducePath($logicalName) |
||
| 39 | |||
| 40 | public function deduceViewLogicalName($logicalName) |
||
| 50 | } |
||
| 51 |