1 | <?php |
||
22 | class ContainerAwareExpressionLanguage extends ExpressionLanguage |
||
23 | { |
||
24 | /** |
||
25 | * DI ContainerInterface implementation |
||
26 | * |
||
27 | * @var ContainerInterface |
||
28 | */ |
||
29 | private $container; |
||
30 | |||
31 | /** |
||
32 | * ContainerAwareExpressionLanguage constructor |
||
33 | * |
||
34 | * @param ContainerInterface $container DI Container |
||
35 | * @param ParserCacheInterface $cache cache |
||
36 | * @param ExpressionFunctionProviderInterface[] $providers providers list |
||
37 | */ |
||
38 | public function __construct(ContainerInterface $container, ParserCacheInterface $cache = null, array $providers = array()) |
||
43 | |||
44 | /** |
||
45 | * Compile an expression with ContainerInterface context |
||
46 | * |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function compile($expression, $names = array()) |
||
53 | |||
54 | /** |
||
55 | * Evaluate an expression with ContainerInterface context |
||
56 | * |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function evaluate($expression, $values = array()) |
||
63 | |||
64 | /** |
||
65 | * Parse an expression with ContainerInterface context |
||
66 | * |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function parse($expression, $names) |
||
73 | } |