__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\DependencyInjection;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\OutOfBoundsException;
/**
* This definition extends another definition.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
class ChildDefinition extends Definition
{
private string $parent;
/**
* @param string $parent The id of Definition instance to decorate
*/
public function __construct(string $parent)
{
$this->parent = $parent;
}
/**
* Returns the Definition to inherit from.
*/
public function getParent(): string
{
return $this->parent;
}
/**
* Sets the Definition to inherit from.
*
* @return $this
*/
public function setParent(string $parent): static
{
$this->parent = $parent;
return $this;
}
/**
* Gets an argument to pass to the service constructor/factory method.
*
* If replaceArgument() has been used to replace an argument, this method
* will return the replacement value.
*
* @throws OutOfBoundsException When the argument does not exist
*/
public function getArgument(int|string $index): mixed
{
if (\array_key_exists('index_'.$index, $this->arguments)) {
return $this->arguments['index_'.$index];
}
return parent::getArgument($index);
}
/**
* You should always use this method when overwriting existing arguments
* of the parent definition.
*
* If you directly call setArguments() keep in mind that you must follow
* certain conventions when you want to overwrite the arguments of the
* parent definition, otherwise your arguments will only be appended.
*
* @return $this
*
* @throws InvalidArgumentException when $index isn't an integer
*/
public function replaceArgument(int|string $index, mixed $value): static
{
if (\is_int($index)) {
$this->arguments['index_'.$index] = $value;
} elseif (str_starts_with($index, '$')) {
$this->arguments[$index] = $value;
} else {
throw new InvalidArgumentException('The argument must be an existing index or the name of a constructor\'s parameter.');
}
return $this;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Argument | Folder | 0755 |
|
|
| Attribute | Folder | 0755 |
|
|
| Compiler | Folder | 0755 |
|
|
| Config | Folder | 0755 |
|
|
| Dumper | Folder | 0755 |
|
|
| Exception | Folder | 0755 |
|
|
| Extension | Folder | 0755 |
|
|
| LazyProxy | Folder | 0755 |
|
|
| Loader | Folder | 0755 |
|
|
| ParameterBag | Folder | 0755 |
|
|
| Alias.php | File | 2.9 KB | 0644 |
|
| ChildDefinition.php | File | 2.56 KB | 0644 |
|
| Container.php | File | 13.6 KB | 0644 |
|
| ContainerAwareInterface.php | File | 681 B | 0644 |
|
| ContainerAwareTrait.php | File | 1.06 KB | 0644 |
|
| ContainerBuilder.php | File | 59.07 KB | 0644 |
|
| ContainerInterface.php | File | 2.28 KB | 0644 |
|
| Definition.php | File | 20.17 KB | 0644 |
|
| EnvVarLoaderInterface.php | File | 654 B | 0644 |
|
| EnvVarProcessor.php | File | 13.01 KB | 0644 |
|
| EnvVarProcessorInterface.php | File | 1.24 KB | 0644 |
|
| ExpressionLanguage.php | File | 1.05 KB | 0644 |
|
| ExpressionLanguageProvider.php | File | 2.12 KB | 0644 |
|
| Parameter.php | File | 601 B | 0644 |
|
| Reference.php | File | 945 B | 0644 |
|
| ReverseContainer.php | File | 2.4 KB | 0644 |
|
| ServiceLocator.php | File | 5.3 KB | 0644 |
|
| TaggedContainerInterface.php | File | 688 B | 0644 |
|
| TypedReference.php | File | 1.54 KB | 0644 |
|
| Variable.php | File | 692 B | 0644 |
|
| autoload.php | File | 25.98 KB | 0644 |
|