AsTaggedItem.php
Namespace
Symfony\Component\DependencyInjection\AttributeFile
-
vendor/
symfony/ dependency-injection/ Attribute/ AsTaggedItem.php
View source
<?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\Attribute;
/**
* An attribute to tell under which index and priority a service class should be found in tagged iterators/locators.
*
* @author Nicolas Grekas <p@tchwork.com>
*/
class AsTaggedItem {
/**
* @param string|null $index The property or method to use to index the item in the locator
* @param int|null $priority The priority of the item; the higher the number, the earlier the tagged service will be located in the locator
*/
public function __construct(?string $index = null, ?int $priority = null) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
AsTaggedItem | An attribute to tell under which index and priority a service class should be found in tagged iterators/locators. |