File tree 9 files changed +62
-1
lines changed
9 files changed +62
-1
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,6 @@ if [ $ENABLE_XDEBUG == "1" ]; then
9
9
docker-php-ext-enable xdebug
10
10
fi
11
11
12
+ php ./bin/console doctrine:migrations:migrate --no-interaction
13
+
12
14
docker-php-entrypoint php-fpm
Original file line number Diff line number Diff line change 9
9
"symfony/flex" : " ^1.3.1" ,
10
10
"symfony/framework-bundle" : " 5.0.*" ,
11
11
"symfony/orm-pack" : " ^1.0" ,
12
+ "symfony/twig-pack" : " ^1.0" ,
12
13
"symfony/yaml" : " 5.0.*" ,
13
14
"vlucas/phpdotenv" : " ~4.1"
14
15
},
Original file line number Diff line number Diff line change 6
6
Doctrine \Bundle \DoctrineBundle \DoctrineBundle::class => ['all ' => true ],
7
7
Doctrine \Bundle \MigrationsBundle \DoctrineMigrationsBundle::class => ['all ' => true ],
8
8
Symfony \Bundle \MakerBundle \MakerBundle::class => ['dev ' => true ],
9
+ Symfony \Bundle \TwigBundle \TwigBundle::class => ['all ' => true ],
10
+ Twig \Extra \TwigExtraBundle \TwigExtraBundle::class => ['all ' => true ],
9
11
];
Original file line number Diff line number Diff line change
1
+ twig :
2
+ strict_variables : true
Original file line number Diff line number Diff line change
1
+ twig :
2
+ default_path : ' %kernel.project_dir%/templates'
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ class IndexController extends AbstractController
13
13
*/
14
14
public function main (): Response
15
15
{
16
- return new Response ( ' Hello world! ' );
16
+ return $ this -> render ( ' main.html.twig ' , [ ' message ' => ' hello world! '] );
17
17
}
18
18
}
Original file line number Diff line number Diff line change 213
213
"phpdocumentor/type-resolver": {
214
214
"version": "1.1.0"
215
215
},
216
+ "phpoption/phpoption": {
217
+ "version": "1.7.3"
218
+ },
216
219
"phpro/grumphp": {
217
220
"version": "v0.17.2"
218
221
},
487
490
"symfony/stopwatch": {
488
491
"version": "v5.0.7"
489
492
},
493
+ "symfony/translation-contracts": {
494
+ "version": "v2.0.1"
495
+ },
496
+ "symfony/twig-bridge": {
497
+ "version": "v5.0.7"
498
+ },
499
+ "symfony/twig-bundle": {
500
+ "version": "5.0",
501
+ "recipe": {
502
+ "repo": "github.com/symfony/recipes",
503
+ "branch": "master",
504
+ "version": "5.0",
505
+ "ref": "fab9149bbaa4d5eca054ed93f9e1b66cc500895d"
506
+ },
507
+ "files": [
508
+ "config/packages/test/twig.yaml",
509
+ "config/packages/twig.yaml",
510
+ "templates/base.html.twig"
511
+ ]
512
+ },
513
+ "symfony/twig-pack": {
514
+ "version": "v1.0.0"
515
+ },
490
516
"symfony/var-dumper": {
491
517
"version": "v5.0.7"
492
518
},
499
525
"theseer/tokenizer": {
500
526
"version": "1.1.3"
501
527
},
528
+ "twig/extra-bundle": {
529
+ "version": "v3.0.3"
530
+ },
531
+ "twig/twig": {
532
+ "version": "v3.0.3"
533
+ },
502
534
"vimeo/psalm": {
503
535
"version": "3.10.1"
504
536
},
537
+ "vlucas/phpdotenv": {
538
+ "version": "v4.1.3"
539
+ },
505
540
"wearejust/grumphp-extra-tasks": {
506
541
"version": "2.2.1"
507
542
},
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ <html >
3
+ <head >
4
+ <meta charset =" UTF-8" >
5
+ <title >{% block title %}Welcome!{% endblock %}</title >
6
+ {% block stylesheets %}{% endblock %}
7
+ </head >
8
+ <body >
9
+ {% block body %}{% endblock %}
10
+ {% block javascripts %}{% endblock %}
11
+ </body >
12
+ </html >
Original file line number Diff line number Diff line change
1
+ {% extends " base.html.twig" %}
2
+
3
+ {% block body %}
4
+ <h1 >{{message }}
5
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments