2011-10-05 04:22:53 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Twig.
|
|
|
|
*
|
2019-02-26 00:11:12 +00:00
|
|
|
* (c) Fabien Potencier
|
|
|
|
* (c) Armin Ronacher
|
2011-10-05 04:22:53 +00:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Twig_Node_Expression_AssignName extends Twig_Node_Expression_Name
|
|
|
|
{
|
|
|
|
public function compile(Twig_Compiler $compiler)
|
|
|
|
{
|
2013-08-01 19:20:12 +00:00
|
|
|
$compiler
|
|
|
|
->raw('$context[')
|
|
|
|
->string($this->getAttribute('name'))
|
|
|
|
->raw(']')
|
|
|
|
;
|
2011-10-05 04:22:53 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-26 00:11:12 +00:00
|
|
|
|
|
|
|
class_alias('Twig_Node_Expression_AssignName', 'Twig\Node\Expression\AssignNameExpression', false);
|