Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Loader/Configurator/InstanceofConfigurator.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 | |
3 /* | |
4 * This file is part of the Symfony package. | |
5 * | |
6 * (c) Fabien Potencier <fabien@symfony.com> | |
7 * | |
8 * For the full copyright and license information, please view the LICENSE | |
9 * file that was distributed with this source code. | |
10 */ | |
11 | |
12 namespace Symfony\Component\DependencyInjection\Loader\Configurator; | |
13 | |
14 /** | |
15 * @author Nicolas Grekas <p@tchwork.com> | |
16 * | |
17 * @method InstanceofConfigurator instanceof(string $fqcn) | |
18 */ | |
19 class InstanceofConfigurator extends AbstractServiceConfigurator | |
20 { | |
21 const FACTORY = 'instanceof'; | |
22 | |
23 use Traits\AutowireTrait; | |
24 use Traits\CallTrait; | |
25 use Traits\ConfiguratorTrait; | |
26 use Traits\LazyTrait; | |
27 use Traits\PropertyTrait; | |
28 use Traits\PublicTrait; | |
29 use Traits\ShareTrait; | |
30 use Traits\TagTrait; | |
31 | |
32 /** | |
33 * Defines an instanceof-conditional to be applied to following service definitions. | |
34 * | |
35 * @param string $fqcn | |
36 * | |
37 * @return InstanceofConfigurator | |
38 */ | |
39 final protected function setInstanceof($fqcn) | |
40 { | |
41 return $this->parent->instanceof($fqcn); | |
42 } | |
43 } |