1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Flextype Slim Integration - next round of integration

This commit is contained in:
Awilum
2019-02-27 15:11:07 +03:00
parent c976543cbb
commit 9b8bc8bce0

View File

@@ -116,7 +116,11 @@ $config = [
'twig' => [
'cache' => false
]
],
'images' => [
'driver' => 'gd',
],
],
];
@@ -135,6 +139,9 @@ $flextype = $app->getContainer();
*/
$flextype['images'] = function($container) {
// Get images settings
$imagesSettings = $container->get('settings')['images'];
// Set source filesystem
$source = new \League\Flysystem\Filesystem(
new \League\Flysystem\Adapter\Local(PATH['entries'])
@@ -151,9 +158,7 @@ $flextype['images'] = function($container) {
);
// Set image manager
$imageManager = new \Intervention\Image\ImageManager([
'driver' => 'gd',
]);
$imageManager = new \Intervention\Image\ImageManager($imagesSettings);
// Set manipulators
$manipulators = [
@@ -228,6 +233,7 @@ $flextype['entries'] = function($container) {
*/
$flextype['view'] = function ($container) {
// Get twig settings
$twigSettings = $container->get('settings')['twig'];
// Create Twig View