1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 16:44:36 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-03-01 20:15:02 +03:00
parent 1def00f129
commit 5caa6b6217
6 changed files with 14 additions and 11 deletions

View File

@@ -13,7 +13,6 @@
namespace Flextype;
use Flextype\Component\Filesystem\Filesystem;
use Flextype\Component\Registry\Registry;
use \Doctrine\Common\Cache as DoctrineCache;
class Cache

View File

@@ -13,9 +13,7 @@
namespace Flextype;
use Flextype\Component\Filesystem\Filesystem;
use Flextype\Component\Event\Event;
use Flextype\Component\I18n\I18n;
use Flextype\Component\Registry\Registry;
class Plugins
{

View File

@@ -13,8 +13,6 @@
namespace Flextype;
use Flextype\Component\Filesystem\Filesystem;
use Flextype\Component\View\View;
use Flextype\Component\Registry\Registry;
class Themes
{

View File

@@ -4,20 +4,24 @@ namespace Flextype;
class EmitterTwigExtension extends \Twig_Extension
{
/**
* Flextype Dependency Container
*/
private $flextype;
/**
* __construct
* Constructor
*/
public function __construct($flextype)
{
$this->flextype = $flextype;
}
/**
* Callback for twig.
*
* @return array
*/
public function getFunctions()
{
return [

View File

@@ -4,20 +4,24 @@ namespace Flextype;
class EntriesTwigExtension extends \Twig_Extension
{
/**
* Flextype Dependency Container
*/
private $flextype;
/**
* __construct
* Constructor
*/
public function __construct($flextype)
{
$this->flextype = $flextype;
}
/**
* Callback for twig.
*
* @return array
*/
public function getFunctions()
{
return [

View File

@@ -6,14 +6,13 @@ use Slim\Flash\Messages;
class FlashTwigExtension extends \Twig_Extension
{
/**
* Flextype Dependency Container
*/
private $flextype;
/**
* Constructor.
* Constructor
*/
public function __construct($flextype)
{
@@ -44,6 +43,7 @@ class FlashTwigExtension extends \Twig_Extension
if (null !== $key) {
return $this->flextype['flash']->getMessage($key);
}
return $this->flextype['flash']->getMessages();
}
}