Dodanie właściwej konfiguracji dockera
This commit is contained in:
1 parent
6a225cb60c
commit
d3fb703ed6
4364 files changed
+828806
-10
No files matched your search
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <[email protected]>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Component\ExpressionLanguage\Node;
|
||||
|
||||
use Symfony\Component\ExpressionLanguage\Compiler;
|
||||
|
||||
/**
|
||||
* @author Fabien Potencier <[email protected]>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class NameNode extends Node
|
||||
{
|
||||
public function __construct(string $name)
|
||||
{
|
||||
parent::__construct(
|
||||
[],
|
||||
['name' => $name]
|
||||
);
|
||||
}
|
||||
|
||||
public function compile(Compiler $compiler)
|
||||
{
|
||||
$compiler->raw('$'.$this->attributes['name']);
|
||||
}
|
||||
|
||||
public function evaluate(array $functions, array $values)
|
||||
{
|
||||
return $values[$this->attributes['name']];
|
||||
}
|
||||
|
||||
public function toArray()
|
||||
{
|
||||
return [$this->attributes['name']];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user