prefix
stringlengths
512
512
suffix
stringlengths
256
256
middle
stringlengths
14
229
meta
dict
ge. * * (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\Loader\Configurator; use Symfony\Component\Console\ArgumentResolver\TraceableArgumen...
ainer->services() ->set('debug.event_dispatcher', TraceableEventDispatcher::class) ->decorate('event_dispatcher') ->args([ service('debug.event_dispatcher.inner'), service('debug.stopwatch'),
bleArgumentResolver; use Symfony\Component\HttpKernel\Controller\TraceableControllerResolver; use Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher; return static function (ContainerConfigurator $container) { $cont
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.php", "language": "php", "file_size": 2464, "cut_index": 563, "middle_length": 229 }
ge. * * (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\Loader\Configurator; use Symfony\Bundle\FrameworkBundle\ErrorHandler\ErrorRenderer\R...
rgs([ inline_service() ->factory([HtmlErrorRenderer::class, 'isDebug']) ->args([ service('request_stack'), param('kernel.debug'), ])
nt\ErrorHandler\ErrorRenderer\HtmlErrorRenderer; return static function (ContainerConfigurator $container) { $container->services() ->set('error_handler.error_renderer.html', HtmlErrorRenderer::class) ->a
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/error_renderer.php", "language": "php", "file_size": 2184, "cut_index": 563, "middle_length": 229 }
hp /* * 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\Loader\Configurator; use Symfony\Com...
service('translator')->nullOnInvalid(), param('validator.translation_domain'), service('form.server_params'), param('form.type_extension.csrf.field_attr'), param('.form.type_extension.
eCsrfExtension::class) ->args([ service('security.csrf.token_manager'), param('form.type_extension.csrf.enabled'), param('form.type_extension.csrf.field_name'),
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form_csrf.php", "language": "php", "file_size": 1082, "cut_index": 515, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Component\Form\Extension\...
) ->set('form.resolved_type_factory', ResolvedTypeFactoryDataCollectorProxy::class) ->args([ inline_service(ResolvedFormTypeFactory::class), service('data_collector.form'), ]) ->set('
Proxy; use Symfony\Component\Form\Extension\DataCollector\Type\DataCollectorTypeExtension; use Symfony\Component\Form\ResolvedFormTypeFactory; return static function (ContainerConfigurator $container) { $container->services(
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form_debug.php", "language": "php", "file_size": 1531, "cut_index": 537, "middle_length": 229 }
* * 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; use Http\Client\HttpAsyncClient; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\ResponseFactoryInterfac...
se Symfony\Component\HttpClient\UriTemplateHttpClient; use Symfony\Contracts\HttpClient\HttpClientInterface; return static function (ContainerConfigurator $container) { $container->services() ->set('cache.http_client.pool') ->paren
; use Symfony\Component\HttpClient\Messenger\PingWebhookMessageHandler; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Psr18Client; use Symfony\Component\HttpClient\Retry\GenericRetryStrategy; u
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/http_client.php", "language": "php", "file_size": 4406, "cut_index": 614, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Component\Lock\LockFactor...
t() ->args([abstract_arg('List of stores'), service('lock.strategy.majority')]) ->set('lock.strategy.majority', ConsensusStrategy::class) ->set('lock.factory.abstract', LockFactory::class)->abstract() ->args([abstr
oreStore; use Symfony\Component\Lock\Strategy\ConsensusStrategy; return static function (ContainerConfigurator $container) { $container->services() ->set('lock.store.combined.abstract', CombinedStore::class)->abstrac
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/lock.php", "language": "php", "file_size": 1804, "cut_index": 537, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Co...
->args([ service('mailer.message_logger_listener'), ]) ->tag('data_collector', [ 'template' => '@WebProfiler/Collector/mailer.html.twig', 'id' => 'mailer', ])
lector::class)
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_debug.php", "language": "php", "file_size": 793, "cut_index": 514, "middle_length": 14 }
buted with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Component\Mailer\Bridge\AhaSend\RemoteEvent\AhaSendPayloadConverter; use Symfony\Component\Mailer\Bridge\AhaSend\Webhook\AhaSendRequestParser; use Symfony\Component\Mailer\Bridge\Brevo\RemoteEvent\BrevoPa...
ymfony\Component\Mailer\Bridge\Mailgun\RemoteEvent\MailgunPayloadConverter; use Symfony\Component\Mailer\Bridge\Mailgun\Webhook\MailgunRequestParser; use Symfony\Component\Mailer\Bridge\Mailjet\RemoteEvent\MailjetPayloadConverter; use Symfony\Component\Mai
\Mailer\Bridge\Mailchimp\Webhook\MailchimpRequestParser; use Symfony\Component\Mailer\Bridge\MailerSend\RemoteEvent\MailerSendPayloadConverter; use Symfony\Component\Mailer\Bridge\MailerSend\Webhook\MailerSendRequestParser; use S
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_webhook.php", "language": "php", "file_size": 6147, "cut_index": 716, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Component\Notifier\Bridge; use Symfony\Component\Notifier\Transport\AbstractTransportFactory; use Symfony\Component\Notifier\Transport\NullTransportFactory; return static function (ContainerConfigurator ...
twork\ChatworkTransportFactory::class, 'discord' => Bridge\Discord\DiscordTransportFactory::class, 'fake-chat' => Bridge\FakeChat\FakeChatTransportFactory::class, 'firebase' => Bridge\Firebase\FirebaseTransportFactory::class,
rvice('event_dispatcher'), service('http_client')->ignoreOnInvalid(), ]); $chatterFactories = [ 'bluesky' => Bridge\Bluesky\BlueskyTransportFactory::class, 'chatwork' => Bridge\Cha
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php", "language": "php", "file_size": 7676, "cut_index": 716, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Component\Notifier\Bridge...
->set('notifier.webhook.request_parser.lox24', Lox24RequestParser::class) ->alias(Lox24RequestParser::class, 'notifier.webhook.request_parser.lox24') ->set('notifier.webhook.request_parser.smsbox', SmsboxRequestParser::class)
ny\Component\Notifier\Bridge\Twilio\Webhook\TwilioRequestParser; use Symfony\Component\Notifier\Bridge\Vonage\Webhook\VonageRequestParser; return static function (ContainerConfigurator $container) { $container->services()
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_webhook.php", "language": "php", "file_size": 1623, "cut_index": 537, "middle_length": 229 }
/* * 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\Loader\Configurator; use Symfony\Compon...
abstract_arg('magic methods allowed, set by the extension'), abstract_arg('throw exceptions, set by the extension'), service('cache.property_access')->ignoreOnInvalid(), service(PropertyReadInfoExtrac
t\PropertyInfo\PropertyWriteInfoExtractorInterface; return static function (ContainerConfigurator $container) { $container->services() ->set('property_accessor', PropertyAccessor::class) ->args([
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/property_access.php", "language": "php", "file_size": 1224, "cut_index": 518, "middle_length": 229 }
?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\Loader\Configurator; use Symfony\C...
abstract_arg('config'), abstract_arg('storage'), null, ]) ->set('rate_limiter.attribute_listener', RateLimitAttributeListener::class) ->tag('kernel.event_subscriber') ->args([tagg
>services() ->set('cache.rate_limiter') ->parent('cache.app') ->tag('cache.pool') ->set('limiter', RateLimiterFactory::class) ->abstract() ->args([
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/rate_limiter.php", "language": "php", "file_size": 1044, "cut_index": 513, "middle_length": 229 }
ge. * * (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\Loader\Configurator; use Symfony\Component\Asset\Context\RequestStackContext; use Sy...
$container->parameters() ->set('asset.request_context.base_path', null) ->set('asset.request_context.secure', null) ; $container->services() ->set('assets.packages', Packages::class) ->args([ ser
y\EmptyVersionStrategy; use Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy; use Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy; return static function (ContainerConfigurator $container) {
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/assets.php", "language": "php", "file_size": 2775, "cut_index": 563, "middle_length": 229 }
ssetsInstallCommand; use Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand; use Symfony\Bundle\FrameworkBundle\Command\CachePoolClearCommand; use Symfony\Bundle\FrameworkBundle\Command\CachePoolDeleteCommand; use Symfony\Bundle\FrameworkBundle\Command\CachePoolInvalidateTagsCommand; use Symfony\Bundle\FrameworkB...
Command; use Symfony\Bundle\FrameworkBundle\Command\DebugAutowiringCommand; use Symfony\Bundle\FrameworkBundle\Command\EventDispatcherDebugCommand; use Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand; use Symfony\Bundle\FrameworkBundle\Command\Ro
kBundle\Command\ConfigDebugCommand; use Symfony\Bundle\FrameworkBundle\Command\ConfigDumpReferenceCommand; use Symfony\Bundle\FrameworkBundle\Command\ContainerDebugCommand; use Symfony\Bundle\FrameworkBundle\Command\ContainerLint
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/console.php", "language": "php", "file_size": 16807, "cut_index": 921, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; use Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory; use Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator; us...
xtension\Core\Type\TransformationFailureExtension; use Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension; use Symfony\Component\Form\Extension\HtmlSanitizer\Type\TextTypeHtmlSanitizerExtension; use Symfony\Component\Form\Ext
tension\Core\Type\FileType; use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\E
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/form.php", "language": "php", "file_size": 7974, "cut_index": 716, "middle_length": 229 }
ge. * * (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\Loader\Configurator; use Symfony\Component\HttpKernel\DependencyInjection\LazyLoadin...
n static function (ContainerConfigurator $container) { $container->parameters() ->set('fragment.renderer.hinclude.global_template', null) ->set('fragment.path', '/_fragment') ; $container->services() ->set('fragment.han
entUriGeneratorInterface; use Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer; use Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer; use Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer; retur
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/fragment_renderer.php", "language": "php", "file_size": 2886, "cut_index": 563, "middle_length": 229 }
* * 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; use Symfony\Component\Mailer\Command\MailerTestCommand; use Symfony\Component\Mailer\EventListener\DkimSignedMessa...
mfony\Component\Mailer\Mailer; use Symfony\Component\Mailer\MailerInterface; use Symfony\Component\Mailer\Messenger\MessageHandler; use Symfony\Component\Mailer\Transport; use Symfony\Component\Mailer\Transport\TransportInterface; use Symfony\Component\Mai
tener; use Symfony\Component\Mailer\EventListener\MessengerTransportListener; use Symfony\Component\Mailer\EventListener\SmimeEncryptedMessageListener; use Symfony\Component\Mailer\EventListener\SmimeSignedMessageListener; use Sy
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer.php", "language": "php", "file_size": 4605, "cut_index": 614, "middle_length": 229 }
eLocator; use Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\AmazonSqsTransportFactory; use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransportFactory; use Symfony\Component\Messenger\Bridge\Beanstalkd\Transport\BeanstalkdTransportFactory; use Symfony\Component\Messenger\Bridge\Redis\Transport\Redis...
Messenger\EventListener\SendFailedMessageForRetryListener; use Symfony\Component\Messenger\EventListener\SendFailedMessageToFailureTransportListener; use Symfony\Component\Messenger\EventListener\StopWorkerOnCustomStopExceptionListener; use Symfony\Compone
essenger\EventListener\ReleaseDeduplicationLockOnFailureListener; use Symfony\Component\Messenger\EventListener\ResetMemoryUsageListener; use Symfony\Component\Messenger\EventListener\ResetServicesListener; use Symfony\Component\
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.php", "language": "php", "file_size": 12726, "cut_index": 921, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Component\ObjectMapper\Me...
('object_mapper.metadata_factory', ReflectionObjectMapperMetadataFactory::class) ->alias(ObjectMapperMetadataFactoryInterface::class, 'object_mapper.metadata_factory') ->set('object_mapper.metadata_factory.reverse_class', ReverseClassObjec
pperMetadataFactory; use Symfony\Component\ObjectMapper\ObjectMapper; use Symfony\Component\ObjectMapper\ObjectMapperInterface; return static function (ContainerConfigurator $container) { $container->services() ->set
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/object_mapper.php", "language": "php", "file_size": 1645, "cut_index": 537, "middle_length": 229 }
ge. * * (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\Loader\Configurator; use Symfony\Component\PropertyInfo\Extractor\ConstructorExtract...
t\PropertyInfo\PropertyInitializableExtractorInterface; use Symfony\Component\PropertyInfo\PropertyListExtractorInterface; use Symfony\Component\PropertyInfo\PropertyReadInfoExtractorInterface; use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterf
nExtractorInterface; use Symfony\Component\PropertyInfo\PropertyInfoCacheExtractor; use Symfony\Component\PropertyInfo\PropertyInfoExtractor; use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface; use Symfony\Componen
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/property_info.php", "language": "php", "file_size": 2840, "cut_index": 563, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Component\ErrorHandler\Er...
->public() ->args([ service('logger')->nullOnInvalid(), null, // Log levels map for enabled error levels param('debug.error_handler.throw_at'), param('kernel.debug'),
ontainerConfigurator $container) { $container->parameters()->set('debug.error_handler.throw_at', -1); $container->services() ->set('debug.error_handler_configurator', ErrorHandlerConfigurator::class)
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/debug_prod.php", "language": "php", "file_size": 1586, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Component\JsonStreamer\CacheWarmer\StreamerCacheWarmer; use Symfony\Component\JsonStreamer\JsonStreamReader; use Symfony\Component\JsonStreamer\JsonStreamWriter; use Symfony\Component\JsonStreamer\Mapping...
taLoader as WriteAttributePropertyMetadataLoader; use Symfony\Component\JsonStreamer\Mapping\Write\DateTimeTypePropertyMetadataLoader as WriteDateTimeTypePropertyMetadataLoader; use Symfony\Component\JsonStreamer\Transformer\DateIntervalValueObjectTransfor
tributePropertyMetadataLoader; use Symfony\Component\JsonStreamer\Mapping\Read\DateTimeTypePropertyMetadataLoader as ReadDateTimeTypePropertyMetadataLoader; use Symfony\Component\JsonStreamer\Mapping\Write\AttributePropertyMetada
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/json_streamer.php", "language": "php", "file_size": 7101, "cut_index": 716, "middle_length": 229 }
* * 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; use Symfony\Component\Mailer\Bridge\AhaSend\Transport\AhaSendTransportFactory; use Symfony\Component\Mailer\Bridge...
ory; use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory; use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory; use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory; use Symf
Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory; use Symfony\Component\Mailer\Bridge\Infobip\Transport\InfobipTransportFactory; use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFact
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_transports.php", "language": "php", "file_size": 4236, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Loader\Configurator; use Symfony\Bundle\FrameworkBundle\EventListener\ConsoleProfile...
ner) { $container->services() ->set('profiler', Profiler::class) ->public() ->args([service('profiler.storage'), service('logger')->nullOnInvalid()]) ->tag('monolog.logger', ['channel' => 'profiler'])
Symfony\Component\HttpKernel\Profiler\FileProfilerStorage; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\HttpKernel\Profiler\ProfilerStateChecker; return static function (ContainerConfigurator $contai
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.php", "language": "php", "file_size": 2873, "cut_index": 563, "middle_length": 229 }
?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\Loader\Configurator; use Symfony\C...
mlSanitizer::class) ->args([service('html_sanitizer.config.default')]) ->tag('html_sanitizer', ['sanitizer' => 'default']) ->alias('html_sanitizer', 'html_sanitizer.sanitizer.default') ->alias(HtmlSanitizerInterface
figurator $container) { $container->services() ->set('html_sanitizer.config.default', HtmlSanitizerConfig::class) ->call('allowSafeElements', [], true) ->set('html_sanitizer.sanitizer.default', Ht
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/html_sanitizer.php", "language": "php", "file_size": 1034, "cut_index": 513, "middle_length": 229 }
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\Loader\Configurator; use Symfony\Bundle\Frame...
'template' => '@WebProfiler/Collector/cache.html.twig', 'id' => 'cache', 'priority' => 275, ]) // CacheWarmer used in dev to clear cache pool ->set('cache_pool_clearer.cache_warmer',
ervices() // DataCollector (public to prevent inlining, made private in CacheCollectorPass) ->set('data_collector.cache', CacheDataCollector::class) ->public() ->tag('data_collector', [
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/cache_debug.php", "language": "php", "file_size": 1317, "cut_index": 524, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Bridge\Monolog\Handler\NotifierHandler; use Symfony\Component\Notifier\Channel\BrowserChannel; use Symfony\Component\Notifier\Channel\ChannelPolicy; use Symfony\Component\Notifier\Channel\ChatChannel; use...
iledMessageToNotifierListener; use Symfony\Component\Notifier\FlashMessage\DefaultFlashMessageImportanceMapper; use Symfony\Component\Notifier\Message\ChatMessage; use Symfony\Component\Notifier\Message\DesktopMessage; use Symfony\Component\Notifier\Messag
nel\SmsChannel; use Symfony\Component\Notifier\Chatter; use Symfony\Component\Notifier\ChatterInterface; use Symfony\Component\Notifier\EventListener\NotificationLoggerListener; use Symfony\Component\Notifier\EventListener\SendFa
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier.php", "language": "php", "file_size": 5950, "cut_index": 716, "middle_length": 229 }
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\Bundle\FrameworkBundle\CacheWarmer; use Symfony\Component\HttpKernel\CacheC...
Psr6CacheClearer $poolClearer, private array $pools = [], ) { } public function warmUp(string $cacheDir, ?string $buildDir = null): array { foreach ($this->pools as $pool) { if ($this->poolClearer->hasPool($pool
hor Teoh Han Hui <teohhanhui@gmail.com> * * @internal */ final class CachePoolClearerCacheWarmer implements CacheWarmerInterface { /** * @param string[] $pools */ public function __construct( private
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/CachePoolClearerCacheWarmer.php", "language": "php", "file_size": 1266, "cut_index": 524, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\CacheWarmer; use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Serial...
YamlFileLoader; /** * Warms up serializer metadata. * * @author Titouan Galopin <galopintitouan@gmail.com> */ final class SerializerCacheWarmer extends AbstractPhpFileCacheWarmer { /** * @param LoaderInterface[] $loaders The serializer m
ony\Component\Serializer\Mapping\Loader\LoaderChain; use Symfony\Component\Serializer\Mapping\Loader\LoaderInterface; use Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader; use Symfony\Component\Serializer\Mapping\Loader\
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/SerializerCacheWarmer.php", "language": "php", "file_size": 2740, "cut_index": 563, "middle_length": 229 }
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\Bundle\FrameworkBundle\CacheWarmer; use Psr\Container\ContainerInterface; use Symfony\Co...
iberInterface { /** * As this cache warmer is optional, dependencies should be lazy-loaded, that's why a container should be injected. */ public function __construct( private ContainerInterface $container, ) { } publi
e\ServiceSubscriberInterface; /** * Generates the router matcher and generator classes. * * @author Fabien Potencier <fabien@symfony.com> * * @final */ class RouterCacheWarmer implements CacheWarmerInterface, ServiceSubscr
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php", "language": "php", "file_size": 1729, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\CacheWarmer; use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Component\Cache\Adapter\PhpArrayAdapter; use Symfony\Component\Vali...
Warms up validator metadata. * * @author Titouan Galopin <galopintitouan@gmail.com> */ final class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer { /** * @param string $phpArrayFile The PHP file where metadata are cached */ pu
ent\Validator\Mapping\Loader\LoaderInterface; use Symfony\Component\Validator\Mapping\Loader\XmlFileLoader; use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader; use Symfony\Component\Validator\ValidatorBuilder; /** *
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php", "language": "php", "file_size": 3144, "cut_index": 614, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\EventListener; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\Console\Debug\CliRequest; use Symfony\Component\Console\Event\ConsoleCommandEvent; use Symfony\Component\Console\Event\ConsoleErrorEvent; use Symfony\Component\Co...
; use Symfony\Component\Stopwatch\Stopwatch; /** * @internal * * @author Jules Pietri <jules@heahprod.com> */ final class ConsoleProfilerListener implements EventSubscriberInterface { private ?\Throwable $error = null; /** @var \SplObjectStora
tion\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpKernel\Profiler\Profile; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\Routing\Generator\UrlGeneratorInterface
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/EventListener/ConsoleProfilerListener.php", "language": "php", "file_size": 5314, "cut_index": 716, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\EventListener; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\Console\E...
tMissingPackageSubscriber implements EventSubscriberInterface { private const PACKAGES = [ 'doctrine' => [ 'fixtures' => ['DoctrineFixturesBundle', 'doctrine/doctrine-fixtures-bundle --dev'], 'mongodb' => ['DoctrineMongo
d be installed (via composer), * if the package is missing, and the input command namespace can be mapped to a Symfony bundle. * * @author Przemysław Bogusz <przemyslaw.bogusz@tubotax.pl> * * @internal */ final class Sugges
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/EventListener/SuggestMissingPackageSubscriber.php", "language": "php", "file_size": 2584, "cut_index": 563, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle...
GET', '/'); $client->request('GET', '/'); } public function testDisabledRebootKernel() { $mock = $this->getKernelMock(); $mock->expects($this->never())->method('shutdown'); $client = new KernelBrowser($mock);
public function testRebootKernelBetweenRequests() { $mock = $this->getKernelMock(); $mock->expects($this->once())->method('shutdown'); $client = new KernelBrowser($mock); $client->request('
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/KernelBrowserTest.php", "language": "php", "file_size": 2421, "cut_index": 563, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; ...
his->assertSame(200, $client->getResponse()->getStatusCode()); $this->assertSame($expectedValue, $client->getResponse()->getContent()); $router = self::getContainer()->get('router'); $this->assertSame('/annotated/create-transactio
ontroller(string $path, string $expectedValue) { $client = $this->createClient(['test_case' => $this->getTestCaseApp(), 'root_config' => 'config.yml']); $client->request('GET', '/annotated'.$path); $t
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AbstractAttributeRoutingTestCase.php", "language": "php", "file_size": 1609, "cut_index": 537, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; u...
self::assertEquals('http://localhost'.$location, $response->headers->get('Location')); } public static function setUpBeforeClass(): void { static::deleteTmpDir(); } public static function tearDownAfterClass(): void
Case extends BaseWebTestCase { public static function assertRedirect($response, $location) { self::assertTrue($response->isRedirect(), 'Response is not a redirect, got status code: '.$response->getStatusCode());
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AbstractWebTestCase.php", "language": "php", "file_size": 2202, "cut_index": 563, "middle_length": 229 }
} public static function mapQueryStringProvider(): iterable { yield 'empty query string mapping nullable attribute' => [ 'uri' => '/map-query-string-to-nullable-attribute.json', 'query' => [], 'expectedResponse' => '', 'expectedStatusCode' => 204, ...
} } JSON, 'expectedStatusCode' => 200, ]; yield 'invalid query string mapping nullable attribute' => [ 'uri' => '/map-query-string-to-nullable-attribute.json', 'query' =>
pproved', 'quantity' => '4']], 'expectedResponse' => <<<'JSON' { "filter": { "status": "approved", "quantity": 4
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php", "language": "php", "file_size": 47204, "cut_index": 2151, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Component\Cache\Adapter\FilesystemA...
utowired_services'); $this->assertInstanceOf(EventDispatcher::class, $autowiredServices->getDispatcher(), 'The event_dispatcher service should be injected if the debug is not enabled'); static::bootKernel(['debug' => true]); $auto
ingTypesTest extends AbstractWebTestCase { public function testEventDispatcherAutowiring() { static::bootKernel(['debug' => false]); $autowiredServices = self::getContainer()->get('test.autowiring_types.a
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/AutowiringTypesTest.php", "language": "php", "file_size": 1760, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand; use Symfony\Bundle\FrameworkBundle\Console\Application; use...
(['test_case' => 'BundlePaths']); $projectDir = tempnam(sys_get_temp_dir(), 'sf_bundle_paths_'); $fs = new Filesystem(); $fs->remove($projectDir); $fs->mkdir($projectDir.'/public'); $command = (new Application($kern
ymfony\Component\Console\Tester\CommandTester; use Symfony\Component\Filesystem\Filesystem; class BundlePathsTest extends AbstractWebTestCase { public function testBundlePublicDir() { $kernel = static::bootKernel
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/BundlePathsTest.php", "language": "php", "file_size": 3793, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpF...
WithEtag() { $client = self::createClient(['test_case' => 'CacheAttributeListener']); $client->request('GET', '/', [], [], ['HTTP_IF_NONE_MATCH' => \sprintf('"%s"', hash('sha256', '12345'))]); self::assertTrue($client->getResp
gumentMetadata; use Symfony\Component\Security\Core\User\InMemoryUser; use Symfony\Component\Security\Http\Attribute\IsGranted; class CacheAttributeListenerTest extends AbstractWebTestCase { public function testAnonymousUser
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CacheAttributeListenerTest.php", "language": "php", "file_size": 2931, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\Command\CachePoolClearCommand; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Cache\Adapter\FilesystemAdapter; use Symfo...
oot_config' => 'config.yml']); } public function testClearPrivatePool() { $tester = $this->createCommandTester(); $tester->execute(['pools' => ['cache.private_pool']], ['decorated' => false]); $tester->assertCommandIsS
ymfony\Component\Finder\SplFileInfo; #[Group('functional')] class CachePoolClearCommandTest extends AbstractWebTestCase { protected function setUp(): void { static::bootKernel(['test_case' => 'CachePoolClear', 'r
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolClearCommandTest.php", "language": "php", "file_size": 6786, "cut_index": 716, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Group; use Sym...
ols() { $tester = $this->createCommandTester(['cache.app', 'cache.system']); $tester->execute([]); $tester->assertCommandIsSuccessful('cache:pool:list exits with 0 in case of success'); $this->assertStringContainsString
ass CachePoolListCommandTest extends AbstractWebTestCase { protected function setUp(): void { static::bootKernel(['test_case' => 'CachePools', 'root_config' => 'config.yml']); } public function testListPo
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolListCommandTest.php", "language": "php", "file_size": 1650, "cut_index": 537, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\Error\W...
rface::class); } #[RequiresPhpExtension('redis')] #[Group('integration')] public function testRedisCachePools() { $this->skipIfRedisUnavailable(); try { $this->doTestCachePools(['root_config' => 'redis_conf
\Exception\InvalidArgumentException; use Symfony\Component\HttpKernel\KernelInterface; class CachePoolsTest extends AbstractWebTestCase { public function testCachePools() { $this->doTestCachePools([], AdapterInte
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/CachePoolsTest.php", "language": "php", "file_size": 4144, "cut_index": 614, "middle_length": 229 }
tributes\TestWith; use Symfony\Bundle\FrameworkBundle\Command\ConfigDebugCommand; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\EnvVarLoader\StatefulEnvVarLoader; use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony...
dTester($debug); $ret = $tester->execute([]); $this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertStringContainsString('Available registered bundles with their extension alias if available', $tester->getDisplay
Tester; #[Group('functional')] class ConfigDebugCommandTest extends AbstractWebTestCase { #[TestWith([true])] #[TestWith([false])] public function testShowList(bool $debug) { $tester = $this->createComman
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConfigDebugCommandTest.php", "language": "php", "file_size": 12234, "cut_index": 921, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\TestWith; use Symfony\Bundle\FrameworkBundle\Command\ConfigDumpReferenceCommand; use Symfony\Bundle\Framew...
debug) { $tester = $this->createCommandTester($debug); $ret = $tester->execute([]); $this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertStringContainsString('Available registered bundles with their
e Symfony\Component\Console\Tester\CommandTester; #[Group('functional')] class ConfigDumpReferenceCommandTest extends AbstractWebTestCase { #[TestWith([true])] #[TestWith([false])] public function testShowList(bool $
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConfigDumpReferenceCommandTest.php", "language": "php", "file_size": 6585, "cut_index": 716, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Consol...
arent::setUpBeforeClass(); } protected function setUp(): void { static::bootKernel(['test_case' => 'ConsoleArgumentResolver', 'root_config' => 'config.yml']); } public function testCustomArgumentResolver() { $appli
stCase { public static function setUpBeforeClass(): void { if (!interface_exists(ValueResolverInterface::class)) { self::markTestSkipped('Console ArgumentResolver not available.'); } p
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConsoleArgumentResolverTest.php", "language": "php", "file_size": 5015, "cut_index": 614, "middle_length": 229 }
tWebTestCase { public function testDumpContainerIfNotExists() { static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml', 'debug' => true]); $application = new Application(static::$kernel); $application->setAutoExit(false); @unlink(static::getContainer...
pplication = new Application(static::$kernel); $application->setAutoExit(false); $tester = new ApplicationTester($application); $tester->run(['command' => 'debug:container']); $this->assertStringContainsString('public', $t
ic::getContainer()->getParameter('debug.container.dump')); } public function testNoDebug() { static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml', 'debug' => false]); $a
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php", "language": "php", "file_size": 18611, "cut_index": 1331, "middle_length": 229 }
ony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; /** * Checks that the container compiles correctly when all the bundle features are enabled. */ class ContainerDum...
('serializer')); } public function testContainerCompilation() { $this->createClient(['test_case' => 'ContainerDump', 'root_config' => 'config.yml', 'debug' => false]); $this->assertTrue(static::getContainer()->has('serializer'
$this->assertTrue(static::getContainer()->has
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDumpTest.php", "language": "php", "file_size": 926, "cut_index": 606, "middle_length": 52 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; ...
tring $expectedOutput) { $kernel = static::createKernel([ 'test_case' => 'ContainerLint', 'root_config' => $configFile, 'debug' => true, ]); $this->application = new Application($kernel);
ommandTest extends AbstractWebTestCase { private Application $application; #[DataProvider('containerLintProvider')] public function testLintContainer(string $configFile, bool $resolveEnvVars, int $expectedExitCode, s
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerLintCommandTest.php", "language": "php", "file_size": 1877, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Group; use Psr\Log\LoggerInterface; use Symfony\Bundle\FrameworkBundle\Command\DebugAutowiringCommand; use Symfony\Bundle\FrameworkBundle\Console\...
cFunctionality() { static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml']); $application = new Application(static::$kernel); $application->setAutoExit(false); $tester = new ApplicationTeste
etionTester; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\Routing\RouterInterface; #[Group('functional')] class DebugAutowiringCommandTest extends AbstractWebTestCase { public function testBasi
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/DebugAutowiringCommandTest.php", "language": "php", "file_size": 6526, "cut_index": 716, "middle_length": 229 }
he 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\Bundle\FrameworkBundle\Tests\Functional; class ErrorHandlerWebTestCase extends AbstractWebTestCase...
self::assertResponseStatusCodeSame(500, $client->getResponse()->getStatusCode()); self::assertStringContainsString('<!DOCTYPE html>', $client->getResponse()->getContent()); self::assertStringContainsString('Oops! An Error Occurred', $cli
$client->request('GET', '/_error/500.html');
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ErrorHandlerWebTestCase.php", "language": "php", "file_size": 898, "cut_index": 547, "middle_length": 52 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; ...
txt -- html -- es -- fr TXT, $client->getResponse()->getContent() ); } public static function getConfigs() { return [
gment', 'root_config' => 'config.yml', 'debug' => true]); if ($insulate) { $client->insulate(); } $client->request('GET', '/fragment_home'); $this->assertEquals(<<<TXT bar
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/FragmentTest.php", "language": "php", "file_size": 1608, "cut_index": 537, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Ht...
ttpClientRequest('https://symfony.com/'); $this->assertHttpClientRequest('https://symfony.com/', 'GET', null, [], 'symfony.http_client'); $this->assertHttpClientRequest('https://symfony.com/', 'POST', 'foo', [], 'symfony.http_client');
$client = $this->createClient(['test_case' => 'HttpClient', 'root_config' => 'config.yml', 'debug' => true]); $client->enableProfiler(); $client->request('GET', '/http_client_call'); $this->assertH
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/HttpClientTest.php", "language": "php", "file_size": 2232, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Bundle\FrameworkBundle\Tests\Functional\app\JsonStreamer\Dto\Dummy; use Symfony\Bundle\FrameworkBundle\Tests\Fun...
*/ class JsonStreamerTest extends AbstractWebTestCase { protected function setUp(): void { static::bootKernel(['test_case' => 'JsonStreamer']); } public function testWrite() { /** @var StreamWriterInterface $writer */
ymfony\Component\JsonStreamer\StreamWriterInterface; use Symfony\Component\JsonStreamer\Transformer\PropertyValueTransformerInterface; use Symfony\Component\TypeInfo\Type; /** * @author Mathias Arlaud <mathias.arlaud@gmail.com>
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/JsonStreamerTest.php", "language": "php", "file_size": 3600, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Component\HttpKernel\KernelInterface; class KernelTestCaseFr...
public function testContainerIsRebuiltWhenTrackedFileAppears() { @unlink(self::$trackedFile); // First boot: container is built tracking the file as non-existing static::bootKernel(['test_case' => 'TestServiceContainer',
:$trackedFile = sys_get_temp_dir().'/'.static::getVarDir().'/tracked_file.yaml'; } public static function tearDownAfterClass(): void { parent::tearDownAfterClass(); @unlink(self::$trackedFile); }
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/KernelTestCaseFreshCacheTest.php", "language": "php", "file_size": 2419, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use Psr\Log\LoggerInterface; use Symfony\Bundle\FullStack; use Symfony\Component\EventDispatcher\EventDispatcherInterface; u...
$envelope = $message->getEnvelope(); $this->assertEquals( [new Address('redirected@example.org')], $envelope->getRecipients() ); $this->assertEquals('sender@example.org', $envelope->ge
t\Mime\Email; class MailerTest extends AbstractWebTestCase { public function testEnvelopeListener() { self::bootKernel(['test_case' => 'Mailer']); $onDoSend = function (SentMessage $message) {
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/MailerTest.php", "language": "php", "file_size": 4195, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Group; use Symfony\Bundle\FrameworkBundl...
pe() (and any other static call site) silently * falls back to a fresh, default-only MimeTypes instance, dropping every guesser * tagged "mime.mime_type_guesser" in the container. */ public function testCustomGuesserIsAppliedAfterKernelB
/** * Verifies that booting the kernel eagerly instantiates the "mime_types" service, * so that MimeTypes::setDefault() fires before any code calls MimeTypes::getDefault(). * * Without this, File::getMimeTy
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/MimeTypeGuesserBootTest.php", "language": "php", "file_size": 2069, "cut_index": 563, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\RequiresMethod...
nt(3); $first = 0; $second = 1; $third = 2; $this->assertNotificationIsNotQueued($this->getNotifierEvent($first)); $this->assertNotificationIsNotQueued($this->getNotifierEvent($second)); $notification = $thi
ierAssertion() { $client = $this->createClient(['test_case' => 'Notifier', 'root_config' => 'config.yml', 'debug' => true]); $client->request('GET', '/send_notification'); $this->assertNotificationCou
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/NotificationTest.php", "language": "php", "file_size": 1997, "cut_index": 537, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Bundle\FrameworkBundle\Tests\Fixtur...
ectMapperTest extends AbstractWebTestCase { public function testObjectMapper() { static::bootKernel(['test_case' => 'ObjectMapper']); /** @var Symfony\Component\ObjectMapper\ObjectMapperInterface<ObjectMapped> */ $objectMap
Target; use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\ObjectMapper\ObjectMapped; use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\ObjectMapper\ObjectToBeMapped; /** * @author Kévin Dunglas <dunglas@gmail.com> */ class Obj
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ObjectMapperTest.php", "language": "php", "file_size": 1833, "cut_index": 537, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; ...
nable the profiler for the next request $client->enableProfiler(); $this->assertNull($client->getProfile()); $client->request('GET', '/profiler'); $this->assertIsObject($client->getProfile()); $client->request('GET'
e' => 'Profiler', 'root_config' => 'config.yml']); if ($insulate) { $client->insulate(); } $client->request('GET', '/profiler'); $this->assertNull($client->getProfile()); // e
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ProfilerTest.php", "language": "php", "file_size": 1865, "cut_index": 537, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Command; use Symfony\Component\Config\ConfigCache; use Symfony\Component\DependencyInjectio...
face $kernel): ContainerBuilder { if (isset($this->container)) { return $this->container; } $file = $kernel->isDebug() ? $kernel->getContainer()->getParameter('debug.container.dump') : false; if (!$file ||
BuildDebugContainerTrait { protected ContainerBuilder $container; /** * Loads the ContainerBuilder from the cache. * * @throws \LogicException */ protected function getContainerBuilder(KernelInter
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/BuildDebugContainerTrait.php", "language": "php", "file_size": 2325, "cut_index": 563, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\TestWith; use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Component\Console\Tester\Com...
on testDumpAllRoutes() { $tester = $this->createCommandTester(); $ret = $tester->execute([]); $display = $tester->getDisplay(); $this->assertSame(0, $ret, 'Returns 0 in case of success'); $this->assertStringCont
n; protected function setUp(): void { $kernel = static::createKernel(['test_case' => 'RouterDebug', 'root_config' => 'config.yml']); $this->application = new Application($kernel); } public functi
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/RouterDebugCommandTest.php", "language": "php", "file_size": 6958, "cut_index": 716, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\DataProvider; ...
rable { yield 'allowed by an autoconfigured service' => [ 200, '/allowed/manually-tagged', ]; yield 'allowed by a manually tagged service' => [ 200, '/allowed/auto-configured',
:createClient(['test_case' => 'RoutingConditionService']); $client->request('GET', $path); $this->assertSame($code, $client->getResponse()->getStatusCode()); } public static function provideRoutes(): ite
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/RoutingConditionServiceTest.php", "language": "php", "file_size": 1705, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\...
r cache pools. * * @author Nicolas Grekas <p@tchwork.com> */ #[AsCommand(name: 'cache:pool:clear', description: 'Clear cache pools')] final class CachePoolClearCommand extends Command { /** * @param string[]|null $poolNames */ public f
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer; /** * Clea
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolClearCommand.php", "language": "php", "file_size": 5094, "cut_index": 716, "middle_length": 229 }
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\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsC...
tends Command { /** * @param string[] $poolNames */ public function __construct( private array $poolNames, ) { parent::__construct(); } protected function configure(): void { $this ->se
tyle\SymfonyStyle; /** * List available cache pools. * * @author Tobias Nyholm <tobias.nyholm@gmail.com> */ #[AsCommand(name: 'cache:pool:list', description: 'List available cache pools')] final class CachePoolListCommand ex
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolListCommand.php", "language": "php", "file_size": 1425, "cut_index": 524, "middle_length": 229 }
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\Bundle\FrameworkBundle\Command; use Symfony\Component\Cache\PruneableInterface; use Symf...
olPruneCommand extends Command { /** * @param iterable<mixed, PruneableInterface> $pools */ public function __construct( private iterable $pools, ) { parent::__construct(); } protected function configure(): vo
ce; use Symfony\Component\Console\Style\SymfonyStyle; /** * Cache pool pruner command. * * @author Rob Frawley 2nd <rmf@src.run> */ #[AsCommand(name: 'cache:pool:prune', description: 'Prune cache pools')] final class CachePo
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolPruneCommand.php", "language": "php", "file_size": 1934, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\Definition\Dumper\XmlReferenceDumper; use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper; use Symfony\Component\Console\Attrib...
Component\Console\Style\SymfonyStyle; use Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface; use Symfony\Component\Yaml\Yaml; /** * A console command for dumping available configuration reference. * * @author Kevin Bond <k
Exception; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php", "language": "php", "file_size": 7616, "cut_index": 716, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Config\ConfigCache; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Exception\RuntimeException; use Symfony\Component\Console\Input\I...
tion\Compiler\ResolveFactoryClassPass; use Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentExcep
pendencyInjection\Compiler\CheckAliasValidityPass; use Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass; use Symfony\Component\DependencyInjection\Compiler\PassConfig; use Symfony\Component\DependencyInjec
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ContainerLintCommand.php", "language": "php", "file_size": 5214, "cut_index": 716, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Psr\Container\ContainerInterface; use Symfony\Bundle\FrameworkBundle\Console\Helper\DescriptorHelper; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\C...
y\Contracts\Service\ServiceProviderInterface; /** * A console command for retrieving information about event dispatcher. * * @author Matthieu Auger <mail@matthieuauger.com> * * @final */ #[AsCommand(name: 'debug:event-dispatcher', description: 'Disp
; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfon
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/EventDispatcherDebugCommand.php", "language": "php", "file_size": 5968, "cut_index": 716, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input...
ponent\Routing\RouterInterface; /** * A console command to test route matching. * * @author Fabien Potencier <fabien@symfony.com> * * @final */ #[AsCommand(name: 'router:match', description: 'Help debug routes by simulating a path info match')] clas
le\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface; use Symfony\Component\Routing\Matcher\TraceableUrlMatcher; use Symfony\Com
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php", "language": "php", "file_size": 4223, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Co...
ncrypt all local secrets to the vault')] final class SecretsEncryptFromLocalCommand extends Command { public function __construct( private AbstractVault $vault, private ?AbstractVault $localVault = null, ) { parent::__constr
ymfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author Nicolas Grekas <p@tchwork.com> * * @internal */ #[AsCommand(name: 'secrets:encrypt-from-local', description: 'E
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsEncryptFromLocalCommand.php", "language": "php", "file_size": 2101, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Co...
russe.com> * @author Nicolas Grekas <p@tchwork.com> * * @internal */ #[AsCommand(name: 'secrets:list', description: 'List all secrets')] final class SecretsListCommand extends Command { public function __construct( private AbstractVault $va
onsole\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author Tobias Schultze <http://tobion.de> * @author Jérémy Derussé <jeremy@de
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsListCommand.php", "language": "php", "file_size": 3347, "cut_index": 614, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Co...
ny\Component\Console\Style\SymfonyStyle; /** * @author Jérémy Derussé <jeremy@derusse.com> * @author Nicolas Grekas <p@tchwork.com> * * @internal */ #[AsCommand(name: 'secrets:remove', description: 'Remove a secret from the vault')] final class Secre
nt; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfo
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsRemoveCommand.php", "language": "php", "file_size": 3214, "cut_index": 614, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component...
Jérémy Derussé <jeremy@derusse.com> * @author Nicolas Grekas <p@tchwork.com> * * @internal */ #[AsCommand(name: 'secrets:set', description: 'Set a secret in the vault')] final class SecretsSetCommand extends Command { public function __construct(
n; use Symfony\Component\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author Tobias Schultze <http://tobion.de> * @author
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsSetCommand.php", "language": "php", "file_size": 5351, "cut_index": 716, "middle_length": 229 }
mfonyStyle; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Translation\Catalogue\MergeOperation; use Symfony\Component\Translation\Catalogue\TargetOperation; use Symfony\Component\Translation\Extractor\ExtractorInterface; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component...
g translations keys from code to translation files')] class TranslationExtractCommand extends Command { private const ASC = 'asc'; private const DESC = 'desc'; private const SORT_ORDERS = [self::ASC, self::DESC]; private const FORMATS = [
and that parses templates to extract translation messages and adds them * into the translation files. * * @author Michel Salib <michelsalib@hotmail.com> */ #[AsCommand(name: 'translation:extract', description: 'Extract missin
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/TranslationExtractCommand.php", "language": "php", "file_size": 20027, "cut_index": 1331, "middle_length": 229 }
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\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use S...
t() { $directoryIteratorProvider = function ($directory, $default) { if (!is_dir($directory)) { $directory = $this->getApplication()->getKernel()->locateResource($directory); } return $defaul
Robin Chalas <robin.chalas@gmail.com> * * @final */ #[AsCommand(name: 'lint:yaml', description: 'Lint a YAML file and outputs encountered errors')] class YamlLintCommand extends BaseLintCommand { public function __construc
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php", "language": "php", "file_size": 1558, "cut_index": 537, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Console\Exception\LogicException; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Compo...
class AbstractConfigCommand extends ContainerDebugCommand { protected function listBundles(OutputInterface|StyleInterface $output): void { $title = 'Available registered bundles with their extension alias if available'; $headers =
/** * A console command for dumping available configuration reference. * * @author Kevin Bond <kevinbond@gmail.com> * @author Wouter J <waldio.webdesign@gmail.com> * @author Grégoire Pineau <lyrixx@lyrixx.info> */ abstract
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php", "language": "php", "file_size": 6610, "cut_index": 716, "middle_length": 229 }
Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Componen...
ommand(name: 'assets:install', description: 'Install bundle\'s web assets under a public directory')] class AssetsInstallCommand extends Command { public const METHOD_COPY = 'copy'; public const METHOD_ABSOLUTE_SYMLINK = 'absolute symlink'; pub
Component\HttpKernel\KernelInterface; /** * Command that places bundle web assets into a given directory. * * @author Fabien Potencier <fabien@symfony.com> * @author Gábor Egyed <gabor.egyed@gmail.com> * * @final */ #[AsC
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php", "language": "php", "file_size": 10150, "cut_index": 921, "middle_length": 229 }
Console\Exception\RuntimeException; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\DependencyInjection\Dumper\Preloader; use Symfony\Compone...
ien@symfony.com> * * @final */ #[AsCommand(name: 'cache:clear', description: 'Clear the cache')] class CacheClearCommand extends Command { private Filesystem $filesystem; public function __construct( private CacheClearerInterface $cache
ent\HttpKernel\CacheClearer\CacheClearerInterface; use Symfony\Component\HttpKernel\RebootableInterface; /** * Clear and Warmup the cache. * * @author Francis Besset <francis.besset@gmail.com> * @author Fabien Potencier <fab
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php", "language": "php", "file_size": 10070, "cut_index": 921, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Compl...
use Symfony\Contracts\Cache\TagAwareCacheInterface; use Symfony\Contracts\Service\ServiceProviderInterface; /** * @author Kevin Bond <kevinbond@gmail.com> */ #[AsCommand(name: 'cache:pool:invalidate-tags', description: 'Invalidate cache tags for all or
e Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolInvalidateTagsCommand.php", "language": "php", "file_size": 3746, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\C...
armup the cache. * * @author Fabien Potencier <fabien@symfony.com> * * @final */ #[AsCommand(name: 'cache:warmup', description: 'Warm up an empty cache')] class CacheWarmupCommand extends Command { public function __construct( private Cach
\Console\Style\SymfonyStyle; use Symfony\Component\DependencyInjection\Dumper\Preloader; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate; use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface; /** * W
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php", "language": "php", "file_size": 2859, "cut_index": 563, "middle_length": 229 }
se Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\CompletionSuggestions; use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input...
njection\ParameterBag\ParameterBag; /** * A console command for retrieving information about services. * * @author Ryan Weaver <ryan@thatsquality.com> * * @internal */ #[AsCommand(name: 'debug:container', description: 'Display current services for a
DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; use Symfony\Component\DependencyI
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php", "language": "php", "file_size": 16194, "cut_index": 921, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Co...
pt all secrets and stores them in the local vault')] final class SecretsDecryptToLocalCommand extends Command { public function __construct( private AbstractVault $vault, private ?AbstractVault $localVault = null, ) { parent
fony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author Nicolas Grekas <p@tchwork.com> * * @internal */ #[AsCommand(name: 'secrets:decrypt-to-local', description: 'Decry
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php", "language": "php", "file_size": 3357, "cut_index": 614, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Co...
the value of a secret')] final class SecretsRevealCommand extends Command { public function __construct( private readonly AbstractVault $vault, private readonly ?AbstractVault $localVault = null, ) { parent::__construct();
ponent\Console\Output\ConsoleOutputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @internal */ #[AsCommand(name: 'secrets:reveal', description: 'Reveal
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsRevealCommand.php", "language": "php", "file_size": 2449, "cut_index": 563, "middle_length": 229 }
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\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use S...
ffLintCommand extends BaseLintCommand { public function __construct() { $directoryIteratorProvider = function ($directory, $default) { if (!is_dir($directory)) { $directory = $this->getApplication()->getKernel()-
> * @author Robin Chalas <robin.chalas@gmail.com> * @author Javier Eguiluz <javier.eguiluz@gmail.com> * * @final */ #[AsCommand(name: 'lint:xliff', description: 'Lint an XLIFF file and outputs encountered errors')] class Xli
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/XliffLintCommand.php", "language": "php", "file_size": 1628, "cut_index": 537, "middle_length": 229 }
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\Bundle\FrameworkBundle\CacheWarmer; use Psr\Container\ContainerInterface; use Symfony\Co...
erInterface { private TranslatorInterface $translator; /** * As this cache warmer is optional, dependencies should be lazy-loaded, that's why a container should be injected. */ public function __construct( private ContainerIn
acts\Translation\TranslatorInterface; /** * Generates the catalogues for translations. * * @author Xavier Leune <xavier.leune@gmail.com> */ final class TranslationsCacheWarmer implements CacheWarmerInterface, ServiceSubscrib
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TranslationsCacheWarmer.php", "language": "php", "file_size": 1605, "cut_index": 537, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional; use Symfony\Component\Ty...
getContainer()->get('property_info'); $this->assertEquals(Type::array(Type::int()), $propertyInfo->getType(Dummy::class, 'codes')); } } class Dummy { /** * @param int[] $codes */ public function setCodes(array $codes) {
nfo = static::
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/PropertyInfoTest.php", "language": "php", "file_size": 792, "cut_index": 514, "middle_length": 14 }
ent\Config\Definition\Processor; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\CompletionSuggestions; use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Exception\LogicExc...
nent\DependencyInjection\Extension\ConfigurationExtensionInterface; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; use Symfony\Component\Yaml\Yaml; /** * A console command for dumping available configuration reference. * * @aut
tput\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\DependencyInjection\Compiler\ValidateEnvPlaceholdersPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Compo
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php", "language": "php", "file_size": 11386, "cut_index": 921, "middle_length": 229 }
Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\CompletionSuggestions; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterf...
blic function __construct( ?string $name = null, private ?FileLinkFormatter $fileLinkFormatter = null, ) { parent::__construct($name); } protected function configure(): void { $this ->setDefiniti
yan Weaver <ryan@knpuniversity.com> * * @internal */ #[AsCommand(name: 'debug:autowiring', description: 'List classes/interfaces you can use for autowiring')] class DebugAutowiringCommand extends ContainerDebugCommand { pu
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php", "language": "php", "file_size": 10290, "cut_index": 921, "middle_length": 229 }
Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\CompletionSuggestions; use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; us...
\MessageCatalogue; use Symfony\Component\Translation\Reader\TranslationReaderInterface; use Symfony\Component\Translation\Translator; use Symfony\Contracts\Translation\TranslatorInterface; /** * Helps finding unused or missing translation messages in a g
gue\MergeOperation; use Symfony\Component\Translation\DataCollectorTranslator; use Symfony\Component\Translation\Extractor\ExtractorInterface; use Symfony\Component\Translation\LoggingTranslator; use Symfony\Component\Translation
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php", "language": "php", "file_size": 15145, "cut_index": 921, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Composer\InstalledVersions; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Helper; use Symfony\Component\Console\Helper\TableSeparator; use Sym...
v> * * @final */ #[AsCommand(name: 'about', description: 'Display information about the current project')] class AboutCommand extends Command { protected function configure(): void { $this ->setHelp(<<<'EOT' T
e Symfony\Component\HttpKernel\KernelInterface; /** * A console command to display information about the current installation. * * @author Roland Franssen <franssen.roland@gmail.com> * @author Joppe De Cuyper <hello@joppe.de
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/AboutCommand.php", "language": "php", "file_size": 6037, "cut_index": 716, "middle_length": 229 }
buted with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Console\Helper\DescriptorHelper; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Completion\CompletionInput; use Symfony...
er\FileLinkFormatter; use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RouterInterface; /** * A console command for retrieving information about routes. * * @author Fabien Potencier <fabien@symfony.com> * @author Tobias Sch
Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\ErrorHandler\ErrorRender
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php", "language": "php", "file_size": 7462, "cut_index": 716, "middle_length": 229 }
ge. * * (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\Bundle\FrameworkBundle\Command; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\C...
te an item from a cache pool. * * @author Pierre du Plessis <pdples@gmail.com> */ #[AsCommand(name: 'cache:pool:delete', description: 'Delete an item from a cache pool')] final class CachePoolDeleteCommand extends Command { /** * @param string[
Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer; /** * Dele
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/CachePoolDeleteCommand.php", "language": "php", "file_size": 2782, "cut_index": 563, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Command; use Symfony\Bundle\FrameworkBundle\Secrets\AbstractVault; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Co...
rk.com> * * @internal */ #[AsCommand(name: 'secrets:generate-keys', description: 'Generate new encryption keys')] final class SecretsGenerateKeysCommand extends Command { public function __construct( private AbstractVault $vault, pri
fony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; /** * @author Tobias Schultze <http://tobion.de> * @author Jérémy Derussé <jeremy@derusse.com> * @author Nicolas Grekas <p@tchwo
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Command/SecretsGenerateKeysCommand.php", "language": "php", "file_size": 3651, "cut_index": 614, "middle_length": 229 }
?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\Bundle\FrameworkBundle\Tests\Functional; class SubRequestsTest e...
bRequestControllerServicesAreResolved() { $client = $this->createClient(['test_case' => 'ControllerServiceResolution', 'root_config' => 'config.yml']); $client->request('GET', 'https://localhost/subrequest'); $this->assertEqual
ent->request('GET', 'https://localhost/subrequest/en'); $this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getResponse()->getContent()); } public function testSu
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/SubRequestsTest.php", "language": "php", "file_size": 1054, "cut_index": 513, "middle_length": 229 }
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\Attributes\Depends; use PHPUnit\Framework\Attributes\DoesNotPerformAssertions; use PHPUnit\Framework\A...
workBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\UnusedPrivateService; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; class TestServiceContainerTest extends AbstractWebTestCase { public function testLog
ony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\PrivateService; use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestServiceContainer\PublicService; use Symfony\Bundle\Frame
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/TestServiceContainerTest.php", "language": "php", "file_size": 4503, "cut_index": 614, "middle_length": 229 }
hp /* * 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\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\Controlle...
k')->getCurrentRequest(); $path['_controller'] = self::class.'::fragmentAction'; $subRequest = $request->duplicate([], null, $path); return $this->container->get('http_kernel')->handle($subRequest, HttpKernelInterface::SUB_REQUEST)
ce; class SubRequestServiceResolutionController { public function __construct(private ContainerInterface $container) { } public function indexAction() { $request = $this->container->get('request_stac
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/SubRequestServiceResolutionController.php", "language": "php", "file_size": 1119, "cut_index": 515, "middle_length": 229 }
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\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\Controller; use S...
cdefghijkmnopqrstuvwxyz]{22}'])] public function specificFormatInAttribute(Ulid $id): Response { return new Response($id); } #[Route(path: '/3/uuid-v1/{id<[0123456789ABCDEFGHJKMNPQRSTVWXYZabcdefghjkmnpqrstvwxyz]{26}>}')] public
th: '/1/uuid-v1/{userId}')] public function anyFormat(UuidV1 $userId): Response { return new Response($userId); } #[Route(path: '/2/ulid/{id}', requirements: ['id' => '[123456789ABCDEFGHJKLMNPQRSTUVWXYZab
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/Controller/UidController.php", "language": "php", "file_size": 1377, "cut_index": 524, "middle_length": 229 }
?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\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestSer...
rvice, object $nonSharedAlias, ) { $this->nonPublicService = $nonPublicService; $this->privateService = $privateService; $this->decorated = $decorated; $this->nonSharedService = $nonSharedService; $this->
haredService; public object $nonSharedAlias; public function __construct( NonPublicService $nonPublicService, PrivateService $privateService, PrivateService $decorated, object $nonSharedSe
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestServiceContainer/PublicService.php", "language": "php", "file_size": 1040, "cut_index": 513, "middle_length": 229 }
n 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\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TransDebug; use Psr\Container\ContainerInterface; use Symfony\Contracts\Ser...
nterface $container) { $this->container = $container; } public static function getSubscribedServices(): array { return ['translator' => TranslatorInterface::class]; } public function hello(): string { r
ntainer; public function __construct(ContainerI
{ "filepath": "src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TransDebug/TransSubscriberService.php", "language": "php", "file_size": 981, "cut_index": 582, "middle_length": 52 }