Spaces:
Runtime error
Runtime error
Download symfony/dependency-injection/Attribute/AsDecorator.php from Alcazard/vibe-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/dependency-injection/Attribute/AsDecorator.php
- Command line
-
hf download hf://spaces/Alcazard/vibe-coding-api/symfony/dependency-injection/Attribute/AsDecorator.php
-
curl -L -o AsDecorator.php https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/dependency-injection/Attribute/AsDecorator.php
1.03 kB
| /* | |
| * 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\Attribute; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| /** | |
| * Declares a decorating service. | |
| */ | |
| (\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE) | |
| class AsDecorator | |
| { | |
| /** | |
| * @param string $decorates The service id to decorate | |
| * @param int $priority The priority of this decoration when multiple decorators are declared for the same service | |
| * @param int $onInvalid The behavior to adopt when the decoration is invalid; must be one of the {@see ContainerInterface} constants | |
| */ | |
| public function __construct( | |
| public string $decorates, | |
| public int $priority = 0, | |
| public int $onInvalid = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, | |
| ) { | |
| } | |
| } | |