repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Exception/RuntimeException.php | src/Symfony/Component/Routing/Exception/RuntimeException.php | <?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\Routing\Exception;
class RuntimeException extends \Ru... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Exception/InvalidArgumentException.php | src/Symfony/Component/Routing/Exception/InvalidArgumentException.php | <?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\Routing\Exception;
class InvalidArgumentException ext... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Exception/RouteNotFoundException.php | src/Symfony/Component/Routing/Exception/RouteNotFoundException.php | <?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\Routing\Exception;
/**
* Exception thrown when a rou... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php | src/Symfony/Component/Routing/Exception/ResourceNotFoundException.php | <?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\Routing\Exception;
/**
* The resource was not found.... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php | src/Symfony/Component/Routing/Exception/MissingMandatoryParametersException.php | <?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\Routing\Exception;
/**
* Exception thrown when a rou... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/CompiledRouteTest.php | src/Symfony/Component/Routing/Tests/CompiledRouteTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\TestCase;
use Sy... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/RouterTest.php | src/Symfony/Component/Routing/Tests/RouterTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\MockObject\MockO... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/RouteCollectionTest.php | src/Symfony/Component/Routing/Tests/RouteCollectionTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\TestCase;
use Sy... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/RouteTest.php | src/Symfony/Component/Routing/Tests/RouteTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\Attributes\DataP... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/RequestContextTest.php | src/Symfony/Component/Routing/Tests/RequestContextTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\Attributes\TestW... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/RouteCompilerTest.php | src/Symfony/Component/Routing/Tests/RouteCompilerTest.php | <?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\Routing\Tests;
use PHPUnit\Framework\Attributes\DataP... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php | src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php | <?php
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
$collection = new RouteCollection();
$collection->add('blog_show', new Route(
'/blog/{slug}',
['_controller' => 'MyBlogBundle:Blog:show', '_stateless' => true],
['locale' => '\w+'],
['compiler_class' => 'RouteCom... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub.php | src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$add = $routes->collection('c_')
->prefix('pub');
$add('root', '/');
$add('bar', '/bar');
$add->collection('pub_')
->host('host')
->add('buz', 'buz');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/importer-php-returns-array.php | src/Symfony/Component/Routing/Tests/Fixtures/importer-php-returns-array.php | <?php
return [
'blog_show' => [
'resource' => 'importer-php-returns-array-with-import.yml',
],
'direct' => [
'path' => '/direct',
],
];
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/CustomRouteCompiler.php | src/Symfony/Component/Routing/Tests/Fixtures/CustomRouteCompiler.php | <?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\Routing\Tests\Fixtures;
use Symfony\Component\Routing... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/collection-defaults.php | src/Symfony/Component/Routing/Tests/Fixtures/collection-defaults.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$collection = $routes->collection();
$collection
->methods(['GET'])
->defaults(['attribute' => true])
->stateless();
$collection->add('defaultsA', '/defaultsA')
-... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_dsl.php | src/Symfony/Component/Routing/Tests/Fixtures/php_dsl.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes
->collection()
->add('foo', '/foo')
->condition('abc')
->options(['utf8' => true])
->add('buz', 'zub')
->controller('foo:act')
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/defaults.php | src/Symfony/Component/Routing/Tests/Fixtures/defaults.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes->add('defaults', '/defaults')
->locale('en')
->format('html')
->stateless(true)
;
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/psr4-attributes.php | src/Symfony/Component/Routing/Tests/Fixtures/psr4-attributes.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes): void {
$routes
->import(
resource: [
'path' => './Psr4Controllers',
'namespace' => 'Symfony\Component\Routing\Tests\Fixtures\Psr4Controllers',
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/validresource.php | src/Symfony/Component/Routing/Tests/Fixtures/validresource.php | <?php
/** @var \Symfony\Component\Routing\Loader\PhpFileLoader $loader */
/** @var \Symfony\Component\Routing\RouteCollection $collection */
$collection = $loader->import('validpattern.php');
$collection->addDefaults([
'foo' => 123,
]);
$collection->addRequirements([
'foo' => '\d+',
]);
$collection->addOptions... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/TraceableAttributeClassLoader.php | src/Symfony/Component/Routing/Tests/Fixtures/TraceableAttributeClassLoader.php | <?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\Routing\Tests\Fixtures;
use Symfony\Component\Routing... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/array_when_env.php | src/Symfony/Component/Routing/Tests/Fixtures/array_when_env.php | <?php
use Symfony\Component\Routing\Loader\Configurator\Routes;
return Routes::config([
'when@some-env' => [
'x' => ['path' => '/x'],
],
'a' => ['path' => '/a'],
]);
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/legacy_internal_scope.php | src/Symfony/Component/Routing/Tests/Fixtures/legacy_internal_scope.php | <?php
use Symfony\Component\Routing\RouteCollection;
// access the loader's internal scope to trigger deprecation
$loader->callConfigurator(static fn () => [], 'dummy.php', 'dummy.php');
return new RouteCollection();
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub_i18n.php | src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub_i18n.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$add = $routes->collection('c_')
->prefix('pub');
$add('foo', ['fr' => '/foo']);
$add('bar', ['fr' => '/bar']);
$routes->add('non_localized', '/non-localized');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_i18n.php | src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_i18n.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes
->collection()
->prefix(['en' => '/glish'])
->add('foo', '/foo')
->add('bar', ['en' => '/bar']);
$routes
->add('baz', ['en' => '/baz']);
$routes-... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub_root.php | src/Symfony/Component/Routing/Tests/Fixtures/php_dsl_sub_root.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$add = $routes->collection('r_');
$add('root', '/');
$add('bar', '/bar/');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/psr4-controllers-redirection.php | src/Symfony/Component/Routing/Tests/Fixtures/psr4-controllers-redirection.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes): void {
$routes->import('psr4-controllers-redirection/psr4-attributes.php');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/RedirectableUrlMatcher.php | src/Symfony/Component/Routing/Tests/Fixtures/RedirectableUrlMatcher.php | <?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\Routing\Tests\Fixtures;
use Symfony\Component\Routing... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/array_routes.php | src/Symfony/Component/Routing/Tests/Fixtures/array_routes.php | <?php
use Symfony\Component\Routing\Loader\Configurator\Routes;
return Routes::config([
'a' => ['path' => '/a'],
'b' => ['path' => '/b', 'methods' => ['GET']],
]);
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/CustomCompiledRoute.php | src/Symfony/Component/Routing/Tests/Fixtures/CustomCompiledRoute.php | <?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\Routing\Tests\Fixtures;
use Symfony\Component\Routing... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/annotated.php | src/Symfony/Component/Routing/Tests/Fixtures/annotated.php | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false | |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/imported-with-defaults.php | src/Symfony/Component/Routing/Tests/Fixtures/imported-with-defaults.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes
->add('one', '/one')
->add('two', '/two')->defaults(['specific' => 'imported'])
;
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/with_define_path_variable.php | src/Symfony/Component/Routing/Tests/Fixtures/with_define_path_variable.php | <?php
$path = '/1/2/3';
return new \Symfony\Component\Routing\RouteCollection();
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/importer-with-defaults.php | src/Symfony/Component/Routing/Tests/Fixtures/importer-with-defaults.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes->import('imported-with-defaults.php')
->prefix('/defaults')
->locale('g_locale')
->format('g_format')
->stateless(true)
;
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/php_object_dsl.php | src/Symfony/Component/Routing/Tests/Fixtures/php_object_dsl.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return new class {
public function __invoke(RoutingConfigurator $routes)
{
$routes
->collection()
->add('foo', '/foo')
->condition('abc')
->options(['utf8' => true])
->add('buz', ... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/when-env.php | src/Symfony/Component/Routing/Tests/Fixtures/when-env.php | <?php
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
return static function (RoutingConfigurator $routes): void {
if ('some-env' === $routes->env()) {
$routes->add('b', '/b');
$routes->add('a', '/a2');
} elseif ('some-other-env' === $routes->env()) {
$routes->ad... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/class-attributes.php | src/Symfony/Component/Routing/Tests/Fixtures/class-attributes.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
use Symfony\Component\Routing\Tests\Fixtures\Psr4Controllers\MyController;
return function (RoutingConfigurator $routes): void {
$routes
->import(
resource: MyController::class,
type: 'attribute',
)
->p... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestUnitEnum.php | src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestUnitEnum.php | <?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\Routing\Tests\Fixtures\Enum;
enum TestUnitEnum
{
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestStringBackedEnum2.php | src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestStringBackedEnum2.php | <?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\Routing\Tests\Fixtures\Enum;
enum TestStringBackedEnu... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestIntBackedEnum.php | src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestIntBackedEnum.php | <?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\Routing\Tests\Fixtures\Enum;
enum TestIntBackedEnum: ... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestStringBackedEnum.php | src/Symfony/Component/Routing/Tests/Fixtures/Enum/TestStringBackedEnum.php | <?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\Routing\Tests\Fixtures\Enum;
enum TestStringBackedEnu... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher2.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher2.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
true, // $matchHost
[ // $staticRoutes
'/test/baz' => [[['_route' => 'baz'], null, null, null, false, false, null]],
'/test/baz.html' => [[['_route' => 'baz2'], null, null, null, false, false, null... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher7.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher7.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/trailing/simple/no-methods' => [[['_route' => 'simple_trailing_slash_no_methods'], null, null, null, true, false, null]],
'/trailing/simple/get-method' => ... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher1.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher1.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
true, // $matchHost
[ // $staticRoutes
'/test/baz' => [[['_route' => 'baz'], null, null, null, false, false, null]],
'/test/baz.html' => [[['_route' => 'baz2'], null, null, null, false, false, null... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher0.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher0.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
],
[ // $dynamicRoutes
],
null, // $checkCondition
];
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher5.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher5.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/a/11' => [[['_route' => 'a_first'], null, null, null, false, false, null]],
'/a/22' => [[['_route' => 'a_second'], null, null, null, false, false, null]],
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher10.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher10.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
0 => '{^(?'
.'|/c(?'
.'|f(?'
.'|cd20/([^/]++)/([^/]++)/([^/]++)/cfcd20(*:54)'... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | true |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher9.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher9.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
true, // $matchHost
[ // $staticRoutes
'/' => [
[['_route' => 'a'], '{^(?P<d>[^\\.]++)\\.e\\.c\\.b\\.a$}sDi', null, null, false, false, null],
[['_route' => 'c'], '{^(?P<e>[^\\.]++)... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher12.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher12.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
0 => '{^(?'
.'|/abc([^/]++)/(?'
.'|1(?'
.'|(*:27)'
.'... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher11.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher11.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
0 => '{^(?'
.'|/(en|fr)/(?'
.'|admin/post(?'
.'|(*:32)'
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher4.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher4.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/just_head' => [[['_route' => 'just_head'], null, ['HEAD' => 0], null, false, false, null]],
'/head_and_get' => [[['_route' => 'head_and_get'], null, ['HEAD... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher8.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher8.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
0 => '{^(?'
.'|/(a)(*:11)'
.')/?$}sD',
11 => '{^(?'
.'|/(.)(*:22)'
.')/?$... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
true, // $matchHost
[ // $staticRoutes
],
[ // $regexpList
0 => '{^(?'
.'|(?i:([^\\.]++)\\.example\\.com)\\.(?'
.'|/abc([^/]++)(?'
.'|(*:55)'
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher6.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher6.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/trailing/simple/no-methods' => [[['_route' => 'simple_trailing_slash_no_methods'], null, null, null, true, false, null]],
'/trailing/simple/get-method' => ... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher14.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher14.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/fr/accueil' => [[['_route' => 'home', '_locale' => 'fr'], null, null, null, false, false, null]],
'/en/home' => [[['_route' => 'home', '_locale' => 'en'], ... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher3.php | src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher3.php | <?php
/**
* This file has been auto-generated
* by the Symfony Routing Component.
*/
return [
false, // $matchHost
[ // $staticRoutes
'/rootprefix/test' => [[['_route' => 'static'], null, null, null, false, false, null]],
'/with-condition' => [[['_route' => 'with-condition'], null, null, nu... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableFQCNAliasConflictController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableFQCNAliasConflictController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: '/foobarccc', name: self::class)]
class InvokableFQCNAliasConflictController
{
public function __invoke()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/PrefixedActionPathController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/PrefixedActionPathController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: '/prefix', host: 'frankdejonge.nl', condition: 'lol=fun')]
class PrefixedActionPathController
{
#[Route(path: '/path', name: 'action')]
public function action()
{
}... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DeprecatedAliasCustomMessageRouteController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DeprecatedAliasCustomMessageRouteController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/GlobalDefaultsClass.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/GlobalDefaultsClass.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/PrefixedActionLocalizedRouteController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/PrefixedActionLocalizedRouteController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/prefix')]
class PrefixedActionLocalizedRouteController
{
#[Route(path: ['en' => '/path', 'nl' => '/pad'], name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExplicitLocalizedActionPathController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExplicitLocalizedActionPathController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class ExplicitLocalizedActionPathController
{
#[Route(path: ['en' => '/path', 'nl' => '/pad'], name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasRouteController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasRouteController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableLocalizedController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableLocalizedController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ["nl" => "/hier", "en" => "/here"], name: 'action')]
class InvokableLocalizedController
{
public function __invoke()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithEnv.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithEnv.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(env: 'some-env')]
class RouteWithEnv
{
#[Route(path: '/path', name: 'action')]
public function action()
{
}
#[Route(path: '/path2', name: 'action2', env: 'some-other... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/FooController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/FooController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class FooController
{
#[Route('/Blog')]
public function simplePath()
{
}
#[Route(['nl' => '/hier', 'en' => '/here'])]
public function localized()
{
}
#[Rout... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DeprecatedAliasRouteController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DeprecatedAliasRouteController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RequirementsWithoutPlaceholderNameController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RequirementsWithoutPlaceholderNameController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MethodsAndSchemes.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MethodsAndSchemes.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
final class MethodsAndSchemes
{
#[Route(path: '/array-many', name: 'array_many', methods: ['GET', 'POST'], schemes: ['http', 'https'])]
public function arrayMany(): void
{
}
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedActionPathController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedActionPathController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class LocalizedActionPathController
{
#[Route(path: ['en' => '/path', 'nl' => '/pad'], name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedMethodActionControllers.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedMethodActionControllers.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ['en' => '/the/path', 'nl' => '/het/pad'])]
class LocalizedMethodActionControllers
{
#[Route(name: 'post', methods: ['POST'])]
public function post()
{
}
#[Rou... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: '/here', name: 'lol', methods: ["GET", "POST"], schemes: ['https'])]
class InvokableController
{
public function __invoke()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRoute.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRoute.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class ExtendedRoute extends Route
{
public function __construct(array|string|null $path = null... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/NothingButNameController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/NothingButNameController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class NothingButNameController
{
#[Route(name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/Utf8ActionControllers.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/Utf8ActionControllers.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/test', utf8: true)]
class Utf8ActionControllers
{
#[Route(name: 'one')]
public function one()
{
}
#[Route(name: 'two', utf8: false)]
public function two()
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DefaultValueController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/DefaultValueController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Routing\Tests\Fixtures\AttributedClasses\BarClass;
use Symfony\Component\Routing\Tests\Fixtures\Enum\TestIntBackedEnum;
use Symfony\Component\Routing\Tests\Fixtures\Enum\Tes... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixWithRouteWithoutLocale.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixWithRouteWithoutLocale.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ['en' => '/en', 'nl' => '/nl'])]
class LocalizedPrefixWithRouteWithoutLocale
{
#[Route(path: '/suffix', name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ActionPathController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ActionPathController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class ActionPathController
{
#[Route('/path', name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithPriorityController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithPriorityController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class RouteWithPriorityController
{
#[Route('/important', name: 'important', priority: 2)]
public function important()
{
}
#[Route('/also-important', name: 'also_important',... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixMissingRouteLocaleActionController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixMissingRouteLocaleActionController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ['nl' => '/nl', 'en' => '/en'])]
class LocalizedPrefixMissingRouteLocaleActionController
{
#[Route(path: ['nl' => '/actie'], name: 'action')]
public function action()
{... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRouteOnClassController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRouteOnClassController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[ExtendedRoute('/class-level')]
class ExtendedRouteOnClassController
{
#[Route(path: '/method-level', name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixMissingLocaleActionController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixMissingLocaleActionController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ['nl' => '/nl'])]
class LocalizedPrefixMissingLocaleActionController
{
#[Route(path: ['nl' => '/actie', 'en' => '/action'], name: 'action')]
public function action()
{
... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithPrefixController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/RouteWithPrefixController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/prefix')]
class RouteWithPrefixController
{
#[Route(path: '/path', name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasClassController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasClassController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixLocalizedActionController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/LocalizedPrefixLocalizedActionController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route(path: ['nl' => '/nl', 'en' => '/en'])]
class LocalizedPrefixLocalizedActionController
{
#[Route(path: ['nl' => '/actie', 'en' => '/action'], name: 'action')]
public function acti... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MethodActionControllers.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MethodActionControllers.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/the/path')]
class MethodActionControllers
{
#[Route(name: 'post', methods: ['POST'])]
public function post()
{
}
#[Route(name: 'put', methods: ['PUT'], priority: 1... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableMethodController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/InvokableMethodController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class InvokableMethodController
{
#[Route(path: '/here', name: 'lol', methods: ["GET", "POST"], schemes: ['https'])]
public function __invoke()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MultipleDeprecatedAliasRouteController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MultipleDeprecatedAliasRouteController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/EncodingClass.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/EncodingClass.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class EncodingClass
{
#[Route]
public function routeÀction()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRouteOnMethodController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRouteOnMethodController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
class ExtendedRouteOnMethodController
{
#[ExtendedRoute(path: '/method-level', name: 'action')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/BazClass.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/BazClass.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MissingRouteNameController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/MissingRouteNameController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony\Component\Routing\Attribute\Route;
class MissingRouteNameController
{
#[Route('/path')]
public function action()
{
}
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AbstractClassController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AbstractClassController.php | <?php
namespace Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures;
abstract class AbstractClassController
{
}
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasInvokableController.php | src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/AliasInvokableController.php | <?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\Routing\Tests\Fixtures\AttributeFixtures;
use Symfony... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/route-with-hosts-expected-collection.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/route-with-hosts-expected-collection.php | <?php
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
return function (string $format) {
$expectedRoutes = new RouteCollection();
$expectedRoutes->add('static.en', $route = new Route('/example'));
$route->setHost('www.... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/importer-without-host.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/importer-without-host.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes->import('imported.php');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-without-host-expected-collection.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-without-host-expected-collection.php | <?php
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
return function (string $format) {
$expectedRoutes = new RouteCollection();
$expectedRoutes->add('imported.en', $route = new Route('/example'));
$route->setHost('ww... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-with-single-host-expected-collection.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/import-with-single-host-expected-collection.php | <?php
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
return function (string $format) {
$expectedRoutes = new RouteCollection();
$expectedRoutes->add('imported.en', $route = new Route('/example'));
$route->setHost('ww... | php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/importer-with-single-host.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/importer-with-single-host.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes->import('imported.php')->host('www.example.com');
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
symfony/symfony | https://github.com/symfony/symfony/blob/9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8/src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/route-with-hosts.php | src/Symfony/Component/Routing/Tests/Fixtures/locale_and_host/route-with-hosts.php | <?php
namespace Symfony\Component\Routing\Loader\Configurator;
return function (RoutingConfigurator $routes) {
$routes->add('static', '/example')->host([
'nl' => 'www.example.nl',
'en' => 'www.example.com',
]);
};
| php | MIT | 9eb3243dd3c2b40347ed54c80e64d23eda1ac7d8 | 2026-01-04T15:02:34.231510Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.