Merge branch '2.8' into 3.1
* 2.8: DX: replace @link with @see annotation bumped min version of Twig to 1.28
This commit is contained in:
commit
a43ccb10a0
|
@ -18,7 +18,7 @@
|
|||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"doctrine/common": "~2.4",
|
||||
"twig/twig": "~1.27|~2.0",
|
||||
"twig/twig": "~1.28|~2.0",
|
||||
"psr/cache": "~1.0",
|
||||
"psr/log": "~1.0",
|
||||
"symfony/polyfill-intl-icu": "~1.0",
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"symfony/yaml": "~2.8|~3.0",
|
||||
"symfony/expression-language": "~2.8|~3.0",
|
||||
"doctrine/doctrine-bundle": "~1.4",
|
||||
"twig/twig": "~1.27|~2.0"
|
||||
"twig/twig": "~1.28|~2.0"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony/security-acl": "For using the ACL functionality of this bundle"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"symfony/twig-bridge": "~2.8|~3.0",
|
||||
"symfony/http-foundation": "~2.8|~3.0",
|
||||
"symfony/http-kernel": "~2.8|~3.0",
|
||||
"twig/twig": "~1.27|~2.0"
|
||||
"twig/twig": "~1.28|~2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/stopwatch": "~2.8|~3.0",
|
||||
|
|
|
@ -110,7 +110,7 @@ class ProfilerController
|
|||
'panel' => $panel,
|
||||
'page' => $page,
|
||||
'request' => $request,
|
||||
'templates' => $this->getTemplateManager()->getTemplates($profile),
|
||||
'templates' => $this->getTemplateManager()->getNames($profile),
|
||||
'is_ajax' => $request->isXmlHttpRequest(),
|
||||
'profiler_markup_version' => 2, // 1 = original profiler, 2 = Symfony 2.8+ profiler
|
||||
)), 200, array('Content-Type' => 'text/html'));
|
||||
|
@ -189,7 +189,7 @@ class ProfilerController
|
|||
'request' => $request,
|
||||
'position' => $position,
|
||||
'profile' => $profile,
|
||||
'templates' => $this->getTemplateManager()->getTemplates($profile),
|
||||
'templates' => $this->getTemplateManager()->getNames($profile),
|
||||
'profiler_url' => $url,
|
||||
'token' => $token,
|
||||
'profiler_markup_version' => 2, // 1 = original toolbar, 2 = Symfony 2.8+ toolbar
|
||||
|
|
|
@ -67,7 +67,9 @@ class TemplateManager
|
|||
*
|
||||
* @param Profile $profile
|
||||
*
|
||||
* @return array
|
||||
* @return Twig_Template[]
|
||||
*
|
||||
* @deprecated not used anymore internally
|
||||
*/
|
||||
public function getTemplates(Profile $profile)
|
||||
{
|
||||
|
@ -89,7 +91,7 @@ class TemplateManager
|
|||
*
|
||||
* @throws \UnexpectedValueException
|
||||
*/
|
||||
protected function getNames(Profile $profile)
|
||||
public function getNames(Profile $profile)
|
||||
{
|
||||
$templates = array();
|
||||
|
||||
|
|
|
@ -112,7 +112,11 @@
|
|||
{% if templates is defined %}
|
||||
<ul id="menu-profiler">
|
||||
{% for name, template in templates %}
|
||||
{% set menu %}{{ template.renderBlock('menu', { collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version }) }}{% endset %}
|
||||
{% set menu -%}
|
||||
{% with { collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version } %}
|
||||
{{ block('menu', template) }}
|
||||
{% endwith %}
|
||||
{%- endset %}
|
||||
{% if menu is not empty %}
|
||||
<li class="{{ name }} {{ name == panel ? 'selected' : '' }}">
|
||||
<a href="{{ path('_profiler', { token: token, panel: name }) }}">{{ menu|raw }}</a>
|
||||
|
|
|
@ -26,14 +26,15 @@
|
|||
|
||||
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink>
|
||||
{% for name, template in templates %}
|
||||
{{ template.renderblock('toolbar', {
|
||||
'collector': profile.getcollector(name),
|
||||
'profiler_url': profiler_url,
|
||||
'token': profile.token,
|
||||
'name': name,
|
||||
'profiler_markup_version': profiler_markup_version
|
||||
})
|
||||
}}
|
||||
{% with {
|
||||
collector: profile.getcollector(name),
|
||||
profiler_url: profiler_url,
|
||||
token: profile.token,
|
||||
name: name,
|
||||
profiler_markup_version: profiler_markup_version
|
||||
} %}
|
||||
{{ block('toolbar', template) }}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
|
||||
{% if 'normal' != position %}
|
||||
|
|
|
@ -22,7 +22,7 @@ use Symfony\Component\Console\Output\ConsoleOutputInterface;
|
|||
*
|
||||
* @author Kévin Dunglas <dunglas@gmail.com>
|
||||
*
|
||||
* @link http://www.php-fig.org/psr/psr-3/
|
||||
* @see http://www.php-fig.org/psr/psr-3/
|
||||
*/
|
||||
class ConsoleLogger extends AbstractLogger
|
||||
{
|
||||
|
|
|
@ -54,7 +54,7 @@ interface FormTypeGuesserInterface
|
|||
* Example:
|
||||
* You want a float greater than 5, 4.512313 is not valid but length(4.512314) > length(5)
|
||||
*
|
||||
* @link https://github.com/symfony/symfony/pull/3927
|
||||
* @see https://github.com/symfony/symfony/pull/3927
|
||||
*
|
||||
* @param string $class The fully qualified class name
|
||||
* @param string $property The name of the property to guess for
|
||||
|
|
|
@ -508,7 +508,7 @@ class NumberToLocalizedStringTransformerTest extends \PHPUnit_Framework_TestCase
|
|||
/**
|
||||
* @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
|
||||
*
|
||||
* @link https://github.com/symfony/symfony/issues/3161
|
||||
* @see https://github.com/symfony/symfony/issues/3161
|
||||
*/
|
||||
public function testReverseTransformDisallowsNaN()
|
||||
{
|
||||
|
|
|
@ -28,7 +28,7 @@ class FileinfoMimeTypeGuesser implements MimeTypeGuesserInterface
|
|||
*
|
||||
* @param string $magicFile A magic file to use with the finfo instance
|
||||
*
|
||||
* @link http://www.php.net/manual/en/function.finfo-open.php
|
||||
* @see http://www.php.net/manual/en/function.finfo-open.php
|
||||
*/
|
||||
public function __construct($magicFile = null)
|
||||
{
|
||||
|
|
|
@ -1683,7 +1683,7 @@ class Request
|
|||
* It works if your JavaScript library sets an X-Requested-With HTTP header.
|
||||
* It is known to work with common JavaScript frameworks:
|
||||
*
|
||||
* @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
|
||||
* @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
|
||||
*
|
||||
* @return bool true if the request is an XMLHttpRequest, false otherwise
|
||||
*/
|
||||
|
|
|
@ -1172,7 +1172,7 @@ class Response
|
|||
/**
|
||||
* Checks if we need to remove Cache-Control for SSL encrypted downloads when using IE < 9.
|
||||
*
|
||||
* @link http://support.microsoft.com/kb/323308
|
||||
* @see http://support.microsoft.com/kb/323308
|
||||
*/
|
||||
protected function ensureIEOverSSLCompatibility(Request $request)
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ use Symfony\Component\Intl\Data\Util\LocaleScanner;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @link http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/util/Region.java
|
||||
* @see http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/util/Region.java
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
|
|
|
@ -62,7 +62,7 @@ class BCryptPasswordEncoder extends BasePasswordEncoder
|
|||
*
|
||||
* @throws BadCredentialsException when the given password is too long
|
||||
*
|
||||
* @link http://lxr.php.net/xref/PHP_5_5/ext/standard/password.c#111
|
||||
* @see http://lxr.php.net/xref/PHP_5_5/ext/standard/password.c#111
|
||||
*/
|
||||
public function encodePassword($raw, $salt)
|
||||
{
|
||||
|
|
|
@ -20,7 +20,7 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* @author Michael Schummel
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @link http://www.michael-schummel.de/2007/10/05/iban-prufung-mit-php/
|
||||
* @see http://www.michael-schummel.de/2007/10/05/iban-prufung-mit-php/
|
||||
*/
|
||||
class IbanValidator extends ConstraintValidator
|
||||
{
|
||||
|
@ -33,7 +33,7 @@ class IbanValidator extends ConstraintValidator
|
|||
* a BBAN (Basic Bank Account Number) which has a fixed length per country and,
|
||||
* included within it, a bank identifier with a fixed position and a fixed length per country
|
||||
*
|
||||
* @link http://www.swift.com/dsp/resources/documents/IBAN_Registry.pdf
|
||||
* @see http://www.swift.com/dsp/resources/documents/IBAN_Registry.pdf
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
|
|
|
@ -56,7 +56,7 @@ class Regex extends Constraint
|
|||
* Pattern is also ignored if match=false since the pattern should
|
||||
* then be reversed before application.
|
||||
*
|
||||
* @link http://dev.w3.org/html5/spec/single-page.html#the-pattern-attribute
|
||||
* @see http://dev.w3.org/html5/spec/single-page.html#the-pattern-attribute
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
|
|
Reference in New Issue