Uploaded (non secure) attachments live now in public/

That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
This commit is contained in:
Jan Böhmer 2019-10-05 20:30:27 +02:00
parent 1b28006267
commit 4fe10b6169
21 changed files with 552 additions and 21 deletions

View file

@ -19,4 +19,5 @@ return [
Shivas\VersioningBundle\ShivasVersioningBundle::class => ['all' => true],
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
];

View file

@ -0,0 +1,20 @@
# See dos how to configure the bundle: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
liip_imagine:
# valid drivers options include "gd" or "gmagick" or "imagick"
driver: "gd"
filter_sets:
thumbnail_sm:
quality: 70
filters:
thumbnail:
size: [150, 150]
mode: inset
thumbnail_md:
quality: 75
filters:
filters:
thumbnail:
size: [300, 300]
mode: inset

View file

@ -0,0 +1,2 @@
_liip_imagine:
resource: "@LiipImagineBundle/Resources/config/routing.yaml"

View file

@ -11,7 +11,7 @@ parameters:
banner: '' # The info text shown in the homepage
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
default_currency: 'EUR' # The currency that should be used
media_directory: 'data/media/'
media_directory: 'public/media/'
db_version_fallback: '5.6' # Be sure to override this, in your .env with your real DB version
services:
@ -32,6 +32,9 @@ services:
resource: '../src/Controller'
tags: ['controller.service_arguments']
Liip\ImagineBundle\Service\FilterService:
alias: 'liip_imagine.service.filter'
app.doctrine.elementListener:
class: App\Security\EntityListeners\ElementPermissionListener
public: false