Skip to content

Commit 9870dbf

Browse files
committed
refactor(core): move FlashTwigExtension from core to Twig Plugin 1.0.4
1 parent 2df4e06 commit 9870dbf

File tree

3 files changed

+1
-69
lines changed

3 files changed

+1
-69
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"issues": "https://github.com/flextype/issues"
1717
},
1818
"require": {
19-
"php": ">=7.2.0",
20-
"slim/flash": "~0.4.0"
19+
"php": ">=7.2.0"
2120
},
2221
"config": {
2322
"apcu-autoloader": true,

dependencies.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Flextype;
1313

14-
use Slim\Flash\Messages;
1514
use Flextype\Component\I18n\I18n;
1615
use function Flextype\Component\I18n\__;
1716

@@ -27,9 +26,6 @@
2726
// Add Global Vars Admin Twig Extension
2827
$flextype->twig->addExtension(new GlobalVarsAdminTwigExtension($flextype));
2928

30-
// Add Flash Twig Extension
31-
$flextype->twig->addExtension(new FlashTwigExtension($flextype));
32-
3329
/**
3430
* Add Assets
3531
*/
@@ -45,13 +41,6 @@
4541
array_merge($_admin_js,
4642
['project/plugins/admin/assets/dist/js/admin-vendor-build.min.js']));
4743

48-
/**
49-
* Add flash service to Flextype container
50-
*/
51-
$flextype['flash'] = static function () {
52-
return new Messages();
53-
};
54-
5544
$flextype['DashboardController'] = static function ($container) {
5645
return new DashboardController($container);
5746
};

twig/FlashTwigExtension.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)