Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Expose tags as consts for PHP config autocompletion #24377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Bundle\FrameworkBundle\DependencyInjection;

require_once __DIR__.'/../Resources/di/tags.php';

use Doctrine\Common\Annotations\Reader;
use Symfony\Bridge\Monolog\Processor\DebugProcessor;
use Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand;
Expand Down
62 changes: 62 additions & 0 deletions src/Symfony/Bundle/FrameworkBundle/Resources/di/tags.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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\DependencyInjection\Loader\Configurator\tag {
const AUTO_ALIAS = 'auto_alias';
const DATA_COLLECTOR = 'data_collector';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\config_cache {
const RESOURCE_CHECKER = 'config_cache.resource_checker';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\console {
const COMMAND = 'console.command';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\container {
const ENV_VAR_PROCESSOR = 'container.env_var_processor';
const SERVICE_SUBSCRIBER = 'container.service_subscriber';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\controller {
const ARGUMENT_VALUE_RESOLVER = 'controller.argument_value_resolver';
const SERVICE_ARGUMENTS = 'controller.service_arguments';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\form {
const TYPE = 'form.type';
const TYPE_GUESSER = 'form.type_guesser';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\kernel {
const CACHE_CLEARER = 'kernel.cache_clearer';
const CACHE_WARMER = 'kernel.cache_warmer';
const EVENT_SUBSCRIBER = 'kernel.event_subscriber';
const RESET = 'kernel.reset';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\property_info {
const ACCESS_EXTRACTOR = 'property_info.access_extractor';
const DESCRIPTION_EXTRACTOR = 'property_info.description_extractor';
const LIST_EXTRACTOR = 'property_info.list_extractor';
const TYPE_EXTRACTOR = 'property_info.type_extractor';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\serializer {
const ENCODER = 'serializer.encoder';
const NORMALIZER = 'serializer.normalizer';
}

namespace Symfony\Component\DependencyInjection\Loader\Configurator\tag\validator {
const CONSTRAINT_VALIDATOR = 'validator.constraint_validator';
const INITIALIZER = 'validator.initializer';
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Bundle\SecurityBundle\DependencyInjection;

require_once __DIR__.'/../Resources/di/tags.php';

use Symfony\Bundle\SecurityBundle\Command\InitAclCommand;
use Symfony\Bundle\SecurityBundle\Command\SetAclCommand;
use Symfony\Bundle\SecurityBundle\Command\UserPasswordEncoderCommand;
Expand Down
14 changes: 14 additions & 0 deletions src/Symfony/Bundle/SecurityBundle/Resources/di/tags.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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\DependencyInjection\Loader\Configurator\tag\security;

const VOTER = 'security.voter';
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Bundle\TwigBundle\DependencyInjection;

require_once __DIR__.'/../Resources/di/tags.php';

use Symfony\Bridge\Twig\Extension\WebLinkExtension;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Resource\FileExistenceResource;
Expand Down
16 changes: 16 additions & 0 deletions src/Symfony/Bundle/TwigBundle/Resources/di/tags.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?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\DependencyInjection\Loader\Configurator\tag\twig;

const EXTENSION = 'twig.extension';
const LOADER = 'twig.loader';
const RUNTIME = 'twig.runtime';