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:
@@ -13,7 +13,6 @@
|
||||
namespace Flextype;
|
||||
|
||||
use Flextype\Component\Filesystem\Filesystem;
|
||||
use Flextype\Component\Registry\Registry;
|
||||
use \Doctrine\Common\Cache as DoctrineCache;
|
||||
|
||||
class Cache
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -13,8 +13,6 @@
|
||||
namespace Flextype;
|
||||
|
||||
use Flextype\Component\Filesystem\Filesystem;
|
||||
use Flextype\Component\View\View;
|
||||
use Flextype\Component\Registry\Registry;
|
||||
|
||||
class Themes
|
||||
{
|
||||
|
@@ -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 [
|
||||
|
@@ -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 [
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user