Revision 1852
Added by darkviper almost 13 years ago
| TokenParserBroker.php | ||
|---|---|---|
| 32 | 32 |
{
|
| 33 | 33 |
foreach ($parsers as $parser) {
|
| 34 | 34 |
if (!$parser instanceof Twig_TokenParserInterface) {
|
| 35 |
throw new Twig_Error('$parsers must a an array of Twig_TokenParserInterface');
|
|
| 35 |
throw new LogicException('$parsers must a an array of Twig_TokenParserInterface');
|
|
| 36 | 36 |
} |
| 37 | 37 |
$this->parsers[$parser->getTag()] = $parser; |
| 38 | 38 |
} |
| 39 | 39 |
foreach ($brokers as $broker) {
|
| 40 | 40 |
if (!$broker instanceof Twig_TokenParserBrokerInterface) {
|
| 41 |
throw new Twig_Error('$brokers must a an array of Twig_TokenParserBrokerInterface');
|
|
| 41 |
throw new LogicException('$brokers must a an array of Twig_TokenParserBrokerInterface');
|
|
| 42 | 42 |
} |
| 43 | 43 |
$this->brokers[] = $broker; |
| 44 | 44 |
} |
Also available in: Unified diff
updated Twig template engine to stable version 1.11.1 step2