Skip to content

[Locale] fixed fallback locale #5641

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c902966
[DomCrawler] Added ability to set file as raw path to file field
hason Aug 31, 2012
9a75b46
[Locale] fixed fallback locale
pkraeutli Oct 1, 2012
63b480e
[Console] fixed #5316
marfillaster Oct 5, 2012
74e2c5e
Fix incorrect inheritdoc blocks
jonathaningram Oct 9, 2012
ccba363
merged branch jonathaningram/patch-10 (PR #5718)
fabpot Oct 11, 2012
61be89d
[Console] [ProgressHelper] better percentage precision
pborreli Oct 12, 2012
dbcd171
[WebProfilerBundle] moved all static assets directly into the templates
fabpot Oct 13, 2012
c656322
[WebProfilerBundle] changed all includes to use the new Twig's notation
fabpot Oct 13, 2012
267412f
[WebProfilerBundle] avoid the usage of the global app variable
fabpot Oct 13, 2012
ee461cb
merged branch pborreli/console-progress-precision (PR #5735)
fabpot Oct 13, 2012
c682f67
[HttpKernel] unified the way the traceable event dispatcher injects i…
fabpot Oct 13, 2012
dfc53b0
[WebProfilerBundle] removed dependency on the templating component
fabpot Oct 13, 2012
a3b3c28
[WebProfileBundle] remove dependency on the DIC
fabpot Oct 13, 2012
289e71d
[WebProfilerBundle] fixed typo
fabpot Oct 13, 2012
d07ce03
[TwigBundle] Moved the registration of the app global to the environment
stof Oct 13, 2012
b31ae34
[WebProfilerBundle] Remove the now unneeded BC var and fixed a typo
stof Oct 13, 2012
d427522
[Validator] fixed German translation, see #5675
craue Oct 13, 2012
bbbf11e
merged branch craue/patch-24 (PR #5743)
fabpot Oct 13, 2012
95c4812
[WebProfilerBundle] fixed tests
fabpot Oct 13, 2012
d0fe87a
[HttpKernel] removed test that is not needed anymore
fabpot Oct 13, 2012
56a1595
moved the traceable controller resolver from the framework bundle to …
fabpot Oct 13, 2012
875e0e2
[WebProfilerBundle] fixed some tests
fabpot Oct 13, 2012
3d2a7db
Fix a few namespaces to match file system.
dpb587 Oct 13, 2012
b576cc7
[Locale] fixed fallback locale
pkraeutli Oct 1, 2012
178c7e5
Merge branch 'fallback-locale-fix' of github.com:astina/symfony into …
pkraeutli Oct 14, 2012
8ee7b67
Moved locale setting after check for intl extension
pkraeutli Oct 14, 2012
5f5b1dc
merged branch dpb587/pr-cleanup-some-tests (PR #5737)
fabpot Oct 14, 2012
db4824b
merged branch marfillaster/help-inheritance (PR #5676)
fabpot Oct 14, 2012
49fa196
merged branch gnugat/i5669-console-list-in-help-command (PR #5725)
fabpot Oct 14, 2012
eb17646
merged branch stof/twig_global (PR #5741)
fabpot Oct 14, 2012
0fc0fb3
merged branch hason/crawler (PR #5407)
fabpot Oct 14, 2012
cbcee1d
[Locale] fixed fallback locale
pkraeutli Oct 1, 2012
4ed27ff
[Locale] fixed fallback locale
pkraeutli Oct 1, 2012
92a1c1f
Moved locale setting after check for intl extension
pkraeutli Oct 14, 2012
7fb716f
Merge branch 'fallback-locale-fix' of github.com:astina/symfony into …
pkraeutli Oct 14, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Bridge\Doctrine\HttpFoundation;
namespace Symfony\Bridge\Doctrine\Tests\HttpFoundation;

use Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler;

Expand Down
5 changes: 5 additions & 0 deletions src/Symfony/Bridge/Twig/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

2.2.0
-----

* The `app` global variable is now injected even when using the twig service directly.

2.1.0
-----

Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
2.2.0
-----

* replaced Symfony\Bundle\FrameworkBundle\Controller\TraceableControllerResolver by Symfony\Component\HttpKernel\Controller\TraceableControllerResolver
* replaced Symfony\Component\HttpKernel\Debug\ContainerAwareTraceableEventDispatcher by Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher
* added Client::enableProfiler()

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ public function load(array $configs, ContainerBuilder $container)
$definition = $container->findDefinition('http_kernel');
$arguments = $definition->getArguments();
$arguments[0] = new Reference('debug.event_dispatcher');
$arguments[2] = new Reference('debug.controller_resolver');
$definition->setArguments($arguments);

$container->setDefinition('controller_resolver', $container->findDefinition('debug.controller_resolver'));
$container->setAlias('debug.controller_resolver', 'controller_resolver');
}

$configuration = $this->getConfiguration($configs, $container);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@

<service id="data_collector.events" class="%data_collector.events.class%" public="false">
<tag name="data_collector" template="WebProfilerBundle:Collector:events" id="events" priority="255" />
<call method="setEventDispatcher">
<argument type="service" id="event_dispatcher" />
</call>
</service>

<service id="data_collector.logger" class="%data_collector.logger.class%" public="false">
Expand Down
7 changes: 2 additions & 5 deletions src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parameter key="debug.event_dispatcher.class">Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher</parameter>
<parameter key="debug.stopwatch.class">Symfony\Component\HttpKernel\Debug\Stopwatch</parameter>
<parameter key="debug.container.dump">%kernel.cache_dir%/%kernel.container_class%.xml</parameter>
<parameter key="debug.controller_resolver.class">Symfony\Bundle\FrameworkBundle\Controller\TraceableControllerResolver</parameter>
<parameter key="debug.controller_resolver.class">Symfony\Component\HttpKernel\Controller\TraceableControllerResolver</parameter>
</parameters>

<services>
Expand All @@ -23,11 +23,8 @@
</service>

<service id="debug.controller_resolver" class="%debug.controller_resolver.class%">
<tag name="monolog.logger" channel="request" />
<argument type="service" id="service_container" />
<argument type="service" id="controller_name_converter" />
<argument type="service" id="controller_resolver" />
<argument type="service" id="debug.stopwatch" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
</services>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

{% block menu %}
<span class="label">
<span class="icon"><img src="{{ asset('bundles/webprofiler/images/profiler/security.png') }}" alt="" /></span>
<span class="icon"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAYAAABaKIzgAAADqUlEQVR42u2YXUiTYRTHs6wbg4Toru4iI7qIrgoFv3XOj0BRpoE4U5n4AV6UOg0UhhaKwvLCr2ZeTPwIsbL50Yb5Oc0hrFU2WY55sUJB2wK3qbn+J15jvJhvay9S4MWfPe95znme357znPOOHXO73f+FjkD/OdDQ0FBf5DPo6bi4OC0Wch+WaD/a11vQyxR82KJ9vQUN2QvWarUWPE9CY4xeu1yucfqkZ5Ymyd8H0BBvQcM8gqsgAdmgqJaWlgdRUVEOgUBgLy4uHpqamhLDHsHMC8h/PwihUOiuqKhwNTU12eVyuV0mkzkSEhJ2WaBhvoAKIH/Gfi45Ofmj5+KJiYnvYQ+kwmD8BGzI0tLSzfX19ZmJiQlNa2vrbG1traGnp2fObDbPNTY22vkAZQdfjY2NdbJBpqenKWV+BOsZS6qsrLSvra31ZmVlLdFzUlKSDRnZonF0dLQTV2WEfPgGvYmUu9igSL+ITpMNKhKJtm02mzI9Pd2CNNt0Ol2P1Wp9otfrB1Qqlaazs3M4LS3ts8lkGuQb9EZeXt4q6+5tOxwOIeZOskGbm5uNdXV1wzQeGBgYWlhYaKD7nZGRYYJfaUFBwWJ4ePgOxg/xucsn6BW1Wv0Ui/4Cxam8oS8AHWeDjoyMvMzOzjbjNB2wS4uKijRkl0gkeqfTmY5r5ED/dNjtdhmzVyhfoGehXJziDtOkv+P5LnSeINmg/f39zwC1kpqa+hX2O4A2kl2j0SgxV0vjhoYGPb5sH9+p99/Y2IiLiYn5CYq79w22WOjUfqBVVVU6hUIxRWnFPb4Hyfv6+sbb29ubl5eXJR0dHaMGg0GBzsFbMfnV19efEYvFtwGn25sjgJycnOdQJHxOsEGR2q2lpaXHiLNS3y0pKXm1V/2ZmZm6wsLCWap8vtpTRHV19XUs+OWgtwpAPtTU1FyCf7inPTc314gsPAKkiR0THx+/ib76Dmvv8gF6KyUlRUdjLsFvBv5JbDtOdBG9VI6qV7e1tVm6u7st8/Pzc0aj8YVUKl2h4uQDVEIt5E9AqYrhn7ffHNqSKz8/34BTny0rK3uLwvoUGRm5zdsrtKurq436HDQKjR2gYahGqVS2UJwX8h30b3UEygXK/m3K9bvTy1j+QfE26cVcIonGHHAcsfyABqNCV3+z2AUSF5i3sbQf7estaBB0H1J5VPUgVA5dZFTO2MY4xR2rYvYL8hY0gAkKhsI8dA0KJNGYsXGLOzaY2S/g6A+II1CWfgAh4q3QhpOWjAAAAABJRU5ErkJggg==" alt="" /></span>
<strong>Security</strong>
</span>
{% endblock %}
Expand Down
5 changes: 4 additions & 1 deletion src/Symfony/Bundle/TwigBundle/Resources/config/twig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<service id="twig" class="%twig.class%">
<argument type="service" id="twig.loader" />
<argument>%twig.options%</argument>
<call method="addGlobal">
<argument>app</argument>
<argument type="service" id="templating.globals" />
</call>
</service>

<service id="twig.cache_warmer" class="%twig.cache_warmer.class%" public="false">
Expand All @@ -43,7 +47,6 @@
<argument type="service" id="twig" />
<argument type="service" id="templating.name_parser" />
<argument type="service" id="templating.locator" />
<argument type="service" id="templating.globals" />
</service>

<service id="twig.extension.trans" class="%twig.extension.trans.class%" public="false">
Expand Down
8 changes: 1 addition & 7 deletions src/Symfony/Bundle/TwigBundle/TwigEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use Symfony\Bridge\Twig\TwigEngine as BaseEngine;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
use Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
use Symfony\Component\Templating\TemplateNameParserInterface;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -34,17 +33,12 @@ class TwigEngine extends BaseEngine implements EngineInterface
* @param \Twig_Environment $environment A \Twig_Environment instance
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
* @param FileLocatorInterface $locator A FileLocatorInterface instance
* @param GlobalVariables|null $globals A GlobalVariables instance or null
*/
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, GlobalVariables $globals = null)
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator)
{
parent::__construct($environment, $parser);

$this->locator = $locator;

if (null !== $globals) {
$environment->addGlobal('app', $globals);
}
}

public function setDefaultEscapingStrategy($strategy)
Expand Down
Loading