8000 Merge branch '2.3' into 2.5 · symfony/symfony@ab1e9f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab1e9f3

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: Configure firewall's kernel exception listener with configured entry point or a default entry point PSR-2 fixes [DependencyInjection] make paths relative to __DIR__ in the generated container Fixed the syntax of a composer.json file Fixed the symfony/config version constraint Tweaked the password-compat version constraint Docblock fixes define constant only if it wasn't defined before Fix incorrect spanish translation Fixed typos Conflicts: composer.json src/Symfony/Bridge/Twig/TwigEngine.php src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php src/Symfony/Component/Console/Helper/TableHelper.php src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php src/Symfony/Component/Debug/ErrorHandler.php src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php src/Symfony/Component/Finder/Tests/Iterator/RecursiveDirectoryIteratorTest.php src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php src/Symfony/Component/HttpFoundation/Response.php src/Symfony/Component/HttpFoundation/StreamedResponse.php src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php src/Symfony/Component/Process/Process.php src/Symfony/Component/Process/Tests/AbstractProcessTest.php src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php src/Symfony/Component/Security/composer.json src/Symfony/Component/Serializer/Encoder/XmlEncoder.php src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php src/Symfony/Component/Stopwatch/StopwatchEvent.php src/Symfony/Component/Stopwatch/StopwatchPeriod.php src/Symfony/Component/Templating/PhpEngine.php src/Symfony/Component/Templating/TemplateReference.php src/Symfony/Component/Templating/TemplateReferenceInterface.php src/Symfony/Component/Translation/TranslatorInterface.php src/Symfony/Component/Validator/ConstraintViolation.php src/Symfony/Component/Validator/ExecutionContextInterface.php src/Symfony/Component/Validator/Mapping/ClassMetadata.php src/Symfony/Component/Validator/MetadataFactoryInterface.php
2 parents a0703cf + be81a1d commit ab1e9f3

File tree

395 files changed

+1779
-1547
lines changed
  • Tests
  • ClassLoader
  • Config
  • Console
  • CssSelector
  • Debug
  • DependencyInjection
  • DomCrawler
  • EventDispatcher
  • Filesystem
  • Finder
  • Form
  • HttpFoundation
  • HttpKernel
  • Intl
  • Locale
  • OptionsResolver
  • Process
  • PropertyAccess
  • Routing
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    395 files changed

    +1779
    -1547
    lines changed

    composer.json

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -71,7 +71,7 @@
    7171
    "doctrine/orm": "~2.2,>=2.2.3",
    7272
    "monolog/monolog": "~1.3",
    7373
    "propel/propel1": "~1.6",
    74-
    "ircmaxell/password-compat": "1.0.*",
    74+
    "ircmaxell/password-compat": "~1.0",
    7575
    "ocramius/proxy-manager": ">=0.3.1,<0.6-dev",
    7676
    "egulias/email-validator": "~1.2"
    7777
    },

    src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

    Lines changed: 4 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -40,10 +40,11 @@ public function __construct(ContainerInterface $container)
    4040
    /**
    4141
    * Dispatches an event to all registered listeners.
    4242
    *
    43-
    * @param string $eventName The name of the event to dispatch. The name of the event is
    44-
    * the name of the method that is invoked on listeners.
    43+
    * @param string $eventName The name of the event to dispatch. The name of the event is
    44+
    * the name of the method that is invoked on listeners.
    4545
    * @param EventArgs $eventArgs The event arguments to pass to the event handlers/listeners.
    4646
    * If not supplied, the single empty EventArgs instance is used.
    47+
    *
    4748
    * @return bool
    4849
    */
    4950
    public function dispatchEvent($eventName, EventArgs $eventArgs = null)
    @@ -81,7 +82,7 @@ public function getListeners($event = null)
    8182
    *
    8283
    * @param string $event
    8384
    *
    84-
    * @return bool TRUE if the specified event has any listeners, FALSE otherwise.
    85+
    * @return bool TRUE if the specified event has any listeners, FALSE otherwise.
    8586
    */
    8687
    public function hasListeners($event)
    8788
    {

    src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPass.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -35,7 +35,7 @@ class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
    3535
    * @param string $connections Parameter ID for connections
    3636
    * @param string $managerTemplate sprintf() template for generating the event
    3737
    * manager's service ID for a connection name
    38-
    * @param string $tagPrefix Tag prefix for listeners and subscribers
    38+
    * @param string $tagPrefix Tag prefix for listeners and subscribers
    3939
    */
    4040
    public function __construct($connections, $managerTemplate, $tagPrefix)
    4141
    {

    src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -118,7 +118,7 @@ public function process(ContainerBuilder $container)
    118118
    * @return string a service definition name
    119119
    *
    120120
    * @throws ParameterNotFoundException if non of the managerParameters has a
    121-
    * non-empty value.
    121+
    * non-empty value.
    122122
    */
    123123
    protected function getChainDriverServiceName(ContainerBuilder $container)
    124124
    {
    @@ -138,7 +138,7 @@ protected function getChainDriverServiceName(ContainerBuilder $container)
    138138
    * Create the service definition for the metadata driver.
    139139
    *
    140140
    * @param ContainerBuilder $container passed on in case an extending class
    141-
    * needs access to the container.
    141+
    * needs access to the container.
    142142
    *
    143143
    * @return Definition|Reference the metadata driver to add to all chain drivers
    144144
    */
    @@ -156,7 +156,7 @@ protected function getDriver(ContainerBuilder $container)
    156156
    *
    157157
    * @param ContainerBuilder $container
    158158
    *
    159-
    * @return bool whether this compiler pass really should register the mappings
    159+
    * @return bool whether this compiler pass really should register the mappings
    160160
    */
    161161
    protected function enabled(ContainerBuilder $container)
    162162
    {

    src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -369,8 +369,8 @@ public function getIndicesForValues(array $values)
    369369
    *
    370370
    * @param mixed $entity The choice to create an index for
    371371
    *
    372-
    * @return int|string A unique index containing only ASCII letters,
    373-
    * digits and underscores.
    372+
    * @return int|string A unique index containing only ASCII letters,
    373+
    * digits and underscores.
    374374
    */
    375375
    protected function createIndex($entity)
    376376
    {
    @@ -390,7 +390,7 @@ protected function createIndex($entity)
    390390
    *
    391391
    * @param mixed $entity The choice to create a value for
    392392
    *
    393-
    * @return int|string A unique value without character limitations.
    393+
    * @return int|string A unique value without character limitations.
    394394
    */
    395395
    protected function createValue($entity)
    396396
    {
    @@ -448,7 +448,7 @@ private function load()
    448448
    *
    449449
    * @param object $entity The entity for which to get the identifier
    450450
    *
    451-
    * @return array The identifier values
    451+
    * @return array The identifier values
    452452
    *
    453453
    * @throws RuntimeException If the entity does not exist in Doctrine's identity map
    454454
    */

    src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityLoaderInterface.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -31,7 +31,7 @@ public function getEntities();
    3131
    * @param string $identifier The identifier field of the object. This method
    3232
    * is not applicable for fields with multiple
    3333
    * identifiers.
    34-
    * @param array $values The values of the identifiers.
    34+
    * @param array $values The values of the identifiers.
    3535
    *
    3636
    * @return array The entities.
    3737
    */

    src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -54,7 +54,7 @@ public function transform($collection)
    5454
    *
    5555
    * @param mixed $array An array of entities
    5656
    *
    57-
    * @return Collection A collection of entities
    57+
    * @return Collection A collection of entities
    5858
    */
    5959
    public function reverseTransform($array)
    6060
    {

    src/Symfony/Bridge/Doctrine/Form/Type/EntityType.php

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -22,6 +22,7 @@ class EntityType extends DoctrineType
    2222
    * @param ObjectManager $manager
    2323
    * @param mixed $queryBuilder
    2424
    * @param string $class
    25+
    *
    2526
    * @return ORMQueryBuilderLoader
    2627
    */
    2728
    public function getLoader(ObjectManager $manager, $queryBuilder, $class)

    src/Symfony/Bridge/Monolog/Tests/Processor/WebProcessorTest.php

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -52,8 +52,8 @@ public function testUsesRequestServerData()
    5252
    }
    5353

    54< 10000 code>54
    /**
    55-
    * @param int $level
    56-
    * @param string $message
    55+
    * @param int $level
    56+
    * @param string $message
    5757
    *
    5858
    * @return array Record
    5959
    */

    src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -368,8 +368,8 @@ public function getIndicesForValues(array $values)
    368368
    *
    369369
    * @param mixed $model The choice to create an index for
    370370
    *
    371-
    * @return int|string A unique index containing only ASCII letters,
    372-
    * digits and underscores.
    371+
    * @return int|string A unique index containing only ASCII letters,
    372+
    * digits and underscores.
    373373
    */
    374374
    protected function createIndex($model)
    375375
    {
    @@ -389,7 +389,7 @@ protected function createIndex($model)
    389389
    *
    390390
    * @param mixed $model The choice to create a value for
    391391
    *
    392-
    * @return int|string A unique value without character limitations.
    392+
    * @return int|string A unique value without character limitations.
    393393
    */
    394394
    protected function createValue($model)
    395395
    {

    src/Symfony/Bridge/Propel1/Security/User/PropelUserProvider.php

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -47,8 +47,8 @@ class PropelUserProvider implements UserProviderInterface
    4747
    /**
    4848
    * Default constructor
    4949
    *
    50-
    * @param string $class The User model class.
    51-
    * @param string|null $property The property to use to retrieve a user.
    50+
    * @param string $class The User model class.
    51+
    * @param string|null $property The property to use to retrieve a user.
    5252
    */
    5353
    public function __construct($class, $property = null)
    5454
    {

    src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/Fixtures/php/lazy_service.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -97,7 +97,7 @@ public function __get($name)
    9797

    9898
    /**
    9999
    * @param string $name
    100-
    * @param mixed $value
    100+
    * @param mixed $value
    101101
    */
    102102
    public function __set($name, $value)
    103103
    {

    src/Symfony/Bridge/ProxyManager/composer.json

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -21,7 +21,7 @@
    2121
    "ocramius/proxy-manager": ">=0.3.1,<0.6-dev"
    2222
    },
    2323
    "require-dev": {
    24-
    "symfony/config": "2.3"
    24+
    "sy 741A mfony/config": "~2.3"
    2525
    },
    2626
    "autoload": {
    2727
    "psr-0": {

    src/Symfony/Bridge/Twig/Extension/CodeExtension.php

    Lines changed: 5 additions & 5 deletions
    Original file line numberDiff line numberDiff line change
    @@ -152,9 +152,9 @@ public function fileExcerpt($file, $line)
    152152
    /**
    153153
    * Formats a file path.
    154154
    *
    155-
    * @param string $file An absolute file path
    156-
    * @param int $line The line number
    157-
    * @param string $text Use this text for the link rather than the file path
    155+
    * @param string $file An absolute file path
    156+
    * @param int $line The line number
    157+
    * @param string $text Use this text for the link rather than the file path
    158158
    *
    159159
    * @return string
    160160
    */
    @@ -187,8 +187,8 @@ public function formatFile($file, $line, $text = null)
    187187
    /**
    188188
    * Returns the link for a given file/line pair.
    189189
    *
    190-
    * @param string $file An absolute file path
    191-
    * @param int $line The line number
    190+
    * @param string $file An absolute file path
    191+
    * @param int $line The line number
    192192
    *
    193193
    * @return string A link of false
    194194
    */

    src/Symfony/Bridge/Twig/Extension/FormExtension.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -137,7 +137,7 @@ public function humanize($text)
    137137
    * @param ChoiceView $choice The choice to check.
    138138
    * @param string|array $selectedValue The selected value to compare.
    139139
    *
    140-
    * @return bool Whether the choice is selected.
    140+
    * @return bool Whether the choice is selected.
    141141
    *
    142142
    * @see ChoiceView::isSelected()
    143143
    */

    src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -36,7 +36,7 @@ public function __construct(FragmentHandler $handler)
    3636
    public function getFunctions()
    3737
    {
    3838
    return array(
    39-
    new \Twig_SimpleFunction('render',array($this, 'renderFragment'), array('is_safe' => array('html'))),
    39+
    new \Twig_SimpleFunction('render', array($this, 'renderFragment'), array('is_safe' => array('html'))),
    4040
    new \Twig_SimpleFunction('render_*', array($this, 'renderFragmentStrategy'), array('is_safe' => array('html'))),
    4141
    new \Twig_SimpleFunction('controller', array($this, 'controller')),
    4242
    );
    @@ -45,8 +45,8 @@ public function getFunctions()
    4545
    /**
    4646
    * Renders a fragment.
    4747
    *
    48-
    * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
    49-
    * @param array $options An array of options
    48+
    * @param string|ControllerReference $uri A URI as a string or a ControllerReference instance
    49+
    * @param array $options An array of options
    5050
    *
    5151
    * @return string The fragment content
    5252
    *

    src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -74,7 +74,7 @@ public function renderBlock(FormView $view, $resource, $blockName, array $variab
    7474
    * @param FormView $view The form view for finding the applying themes.
    7575
    * @param string $blockName The name of the block to load.
    7676
    *
    77-
    * @return bool True if the resource could be loaded, false otherwise.
    77+
    * @return bool True if the resource could be loaded, false otherwise.
    7878
    */
    7979
    protected function loadResourceForBlockName($cacheKey, FormView $view, $blockName)
    8080
    {

    src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -49,7 +49,7 @@ public function warmUp($cacheDir)
    4949
    /**
    5050
    * Checks whether this warmer is optional or not.
    5151
    *
    52-
    * @return bool always true
    52+
    * @return bool always true
    5353
    */
    5454
    public function isOptional()
    5555
    {

    src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplatePathsCacheWarmer.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -55,7 +55,7 @@ public function warmUp($cacheDir)
    5555
    /**
    5656
    * Checks whether this warmer is optional or not.
    5757
    *
    58-
    * @return bool always true
    58+
    * @return bool always true
    5959
    */
    6060
    public function isOptional()
    6161
    {

    src/Symfony/Bundle/FrameworkBundle/Console/Application.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -63,7 +63,7 @@ public function getKernel()
    6363
    * @param InputInterface $input An Input instance
    6464
    * @param OutputInterface $output An Output instance
    6565
    *
    66-
    * @return int 0 if everything went fine, or an error code
    66+
    * @return int 0 if everything went fine, or an error code
    6767
    */
    6868
    public function doRun(InputInterface $input, OutputInterface $output)
    6969
    {

    src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php

    Lines changed: 6 additions & 6 deletions
    Original file line numberDiff line numberDiff line change
    @@ -37,9 +37,9 @@ class Controller extends ContainerAware
    3737
    /**
    3838
    * Generates a URL from the given parameters.
    3939
    *
    40-
    * @param string $route The name of the route
    41-
    * @param mixed $parameters An array of parameters
    42-
    * @param bool|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
    40+
    * @param string $route The name of the route
    41+
    * @param mixed $parameters An array of parameters
    42+
    * @param bool|string $referenceType The type of reference (one of the constants in UrlGeneratorInterface)
    4343
    *
    4444
    * @return string The generated URL
    4545
    *
    @@ -70,8 +70,8 @@ public function forward($controller, array $path = array(), array $query = array
    7070
    /**
    7171
    * Returns a RedirectResponse to the given URL.
    7272
    *
    73-
    * @param string $url The URL to redirect to
    74-
    * @param int $status The status code to use for the Response
    73+
    * @param string $url The URL to redirect to
    74+
    * @param int $status The status code to use for the Response
    7575
    *
    7676
    * @return RedirectResponse
    7777
    */
    @@ -255,7 +255,7 @@ public function getUser()
    255255
    *
    256256
    * @param string $id The service id
    257257
    *
    258-
    * @return bool true if the service id is defined, false otherwise
    258+
    * @return bool true if the service id is defined, false otherwise
    259259
    */
    260260
    public function has($id)
    261261
    {

    src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -48,7 +48,7 @@ public function __construct(ContainerInterface $container, ControllerNameParser
    4848
    *
    4949
    * @return mixed A PHP callable
    5050
    *
    51-
    * @throws \LogicException When the name could not be parsed
    51+
    * @throws \LogicException When the name could not be parsed
    5252
    * @throws \InvalidArgumentException When the controller class does not exist
    5353
    */
    5454
    protected function createController($controller)

    src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php

    Lines changed: 10 additions & 10 deletions
    Original file line numberDiff line numberDiff line change
    @@ -34,10 +34,10 @@ class RedirectController extends ContainerAware
    3434
    * In case the route name is empty, the status code will be 404 when permanent is false
    3535
    * and 410 otherwise.
    3636
    *
    37-
    * @param Request $request The request instance
    38-
    * @param string $route The route name to redirect to
    39-
    * @param bool $permanent Whether the redirection is permanent
    40-
    * @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
    37+
    * @param Request $request The request instance
    38+
    * @param string $route The route name to redirect to
    39+
    * @param bool $permanent Whether the redirection is permanent
    40+
    * @param bool|array $ignoreAttributes Whether to ignore attributes or an array of attributes to ignore
    4141
    *
    4242
    * @return Response A Response instance
    4343
    *
    @@ -70,12 +70,12 @@ public function redirectAction(Request $request, $route, $permanent = false, $ig
    7070
    * In case the path is empty, the status code will be 404 when permanent is false
    7171
    * and 410 otherwise.
    7272
    *
    73-
    * @param Request $request The request instance
    74-
    * @param string $path The absolute path or URL to redirect to
    75-
    * @param bool $permanent Whether the redirect is permanent or not
    76-
    * @param string|null $scheme The URL scheme (null to keep the current one)
    77-
    * @param int|null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
    78-
    * @param int|null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
    73+
    * @param Request $request The request instance
    74+
    * @param string $path The absolute path or URL to redirect to
    75+
    * @param bool $permanent Whether the redirect is permanent or not
    76+
    * @param string|null $scheme The URL scheme (null to keep the current one)
    77+
    * @param int|null $httpPort The HTTP port (null to keep the current one for the same scheme or the configured port in the container)
    78+
    * @param int|null $httpsPort The HTTPS port (null to keep the current one for the same scheme or the configured port in the container)
    7979
    *
    8080
    * @return Response A Response instance
    8181
    *

    src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php

    Lines changed: 4 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -24,10 +24,10 @@ class TemplateController extends ContainerAware
    2424
    /**
    2525
    * Renders a template.
    2626
    *
    27-
    * @param string $template The template name
    28-
    * @param int|null $maxAge Max age for client caching
    29-
    * @param int|null $sharedAge Max age for shared (proxy) caching
    30-
    * @param bool|null $private Whether or not caching should apply for client caches only
    27+
    * @param string $template The template name
    28+
    * @param int|null $maxAge Max age for client caching
    29+
    * @param int|null $sharedAge Max age for shared (proxy) caching
    30+
    * @param bool|null $private Whether or not caching should apply for client caches only
    3131
    *
    3232
    * @return Response A Response instance
    3333
    */

    src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -262,7 +262,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
    262262
    'memcached' => 'Symfony\Component\HttpKernel\Profiler\MemcachedProfilerStorage',
    263263
    'redis' => 'Symfony\Component\HttpKernel\Profiler\RedisProfilerStorage',
    264264
    );
    265-
    list($class, ) = explode(':', $config['dsn'], 2);
    265+
    list($class,) = explode(':', $config['dsn'], 2);
    266266
    if (!isset($supported[$class])) {
    267267
    throw new \LogicException(sprintf('Driver "%s" is not supported for the profiler.', $class));
    268268
    }

    src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -108,7 +108,7 @@ public function getEnvironment()
    108108
    /**
    109109
    * Returns the current app debug mode.
    110110
    *
    111-
    * @return bool The current debug mode
    111+
    * @return bool The current debug mode
    112112
    */
    113113
    public function getDebug()
    114114
    {

    0 commit comments

    Comments
     (0)
    0