Skip to content

Commit 53c2125

Browse files
author
Thomas Jarrand
committed
Support Symfony 4
1 parent a911cce commit 53c2125

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Yourbase template should extends elao admin theme base:
1818
{# HEAD #}
1919
2020
{% block stylesheets %}
21-
{{ encore_entry_link_tags('style') }}
21+
{{ encore_entry_link_tags('app') }}
2222
{% endblock %}
2323
2424
{% block javascripts %}
@@ -55,7 +55,6 @@ Yourbase template should extends elao admin theme base:
5555
{ label: 'Profil', route: 'profile', },
5656
{ label: 'Déconnexion', url: '/logout', },
5757
] %}
58-
5958
```
6059

6160
### Page

Resources/config/services.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
99

1010
return static function (ContainerConfigurator $container): void {
11+
// Symfony 4 support
12+
if (!function_exists('service')) {
13+
function service($id) {
14+
return ref($id);
15+
}
16+
}
17+
1118
$container->services()
1219

1320
->set(MenuExtension::class)

composer.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@
44
"type": "symfony-bundle",
55
"require": {
66
"php": "^7.4",
7-
"symfony/filesystem": "^5.1",
87
"twig/twig": "^2.12|^3.0",
9-
"symfony/routing": "^5.1",
10-
"symfony/http-foundation": "^5.1"
8+
"symfony/routing": "~4.0|~5.0",
9+
"symfony/config": "~4.0|~5.0",
10+
"symfony/dependency-injection": "~4.0|~5.0",
11+
"symfony/http-foundation": "~4.0|~5.0"
12+
},
13+
"require-dev": {
14+
"symfony/console": "^5.1",
15+
"symfony/twig-bridge": "^5.1",
16+
"symfony/finder": "^5.1",
17+
"symfony/filesystem": "^5.1"
1118
},
1219
"license": "MIT",
1320
"authors": [
@@ -25,10 +32,5 @@
2532
"branch-alias": {
2633
"dev-master": "1.x-dev"
2734
}
28-
},
29-
"require-dev": {
30-
"symfony/console": "^5.1",
31-
"symfony/twig-bridge": "^5.1",
32-
"symfony/finder": "^5.1"
3335
}
3436
}

0 commit comments

Comments
 (0)