mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-26 03:58:45 +02:00
migration symfony 5 4 (#300)
* symfony 5.4 (diff dev) * symfony 5.4 (working) * symfony 5.4 (update autoload) * symfony 5.4 (remove swiftmailer mailer implementation) * symfony 5.4 (php doc and split Global accessor class) ### Impacted packages: composer require php:">=7.2.5 <8.0.0" symfony/console:5.4.* symfony/dotenv:5.4.* symfony/framework-bundle:5.4.* symfony/twig-bundle:5.4.* symfony/yaml:5.4.* --update-with-dependencies composer require symfony/stopwatch:5.4.* symfony/web-profiler-bundle:5.4.* --dev --update-with-dependencies
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<!-- START of Symfony Web Debug Toolbar -->
|
||||
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
|
||||
<a href="#" title="Show Symfony toolbar" tabindex="-1" id="sfToolbarMiniToggler-{{ token }}" accesskey="D">
|
||||
<button type="button" title="Show Symfony toolbar" id="sfToolbarMiniToggler-{{ token }}" accesskey="D" aria-expanded="false" aria-controls="sfToolbarMainContent-{{ token }}">
|
||||
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<div id="sfToolbarClearer-{{ token }}" class="sf-toolbar-clearer"></div>
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
{% for name, template in templates %}
|
||||
{% if block('toolbar', template) is defined %}
|
||||
{% with {
|
||||
collector: profile.getcollector(name),
|
||||
collector: profile ? profile.getcollector(name) : null,
|
||||
profiler_url: profiler_url,
|
||||
token: profile.token,
|
||||
token: token ?? (profile ? profile.token : null),
|
||||
name: name,
|
||||
profiler_markup_version: profiler_markup_version,
|
||||
csp_script_nonce: csp_script_nonce,
|
||||
@@ -22,9 +22,25 @@
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if full_stack %}
|
||||
<div class="sf-full-stack sf-toolbar-block sf-toolbar-block-full-stack sf-toolbar-status-red sf-toolbar-block-right">
|
||||
<div class="sf-toolbar-icon">
|
||||
<span class="sf-toolbar-value">Using symfony/symfony is NOT supported</span>
|
||||
</div>
|
||||
<div class="sf-toolbar-info sf-toolbar-status-red">
|
||||
<p>This project is using Symfony via the "symfony/symfony" package.</p>
|
||||
<p>This is NOT supported anymore since Symfony 4.0.</p>
|
||||
<p>Even if it seems to work well, it has some important limitations with no workarounds.</p>
|
||||
<p>Using this package also makes your project slower.</p>
|
||||
|
||||
<a class="hide-button" id="sfToolbarHideButton-{{ token }}" title="Close Toolbar" tabindex="-1" accesskey="D">
|
||||
<strong>Please, stop using this package and replace it with individual packages instead.</strong>
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<button class="hide-button" type="button" id="sfToolbarHideButton-{{ token }}" title="Close Toolbar" accesskey="D" aria-expanded="true" aria-controls="sfToolbarMainContent-{{ token }}">
|
||||
{{ include('@WebProfiler/Icon/close.svg') }}
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
<!-- END of Symfony Web Debug Toolbar -->
|
||||
|
||||
Reference in New Issue
Block a user