new: usr: Add opportunity to use profile picture. #4
This commit is contained in:
@@ -14,4 +14,6 @@ return [
|
||||
Webauthn\Bundle\WebauthnBundle::class => ['all' => true],
|
||||
Webauthn\Stimulus\WebauthnStimulusBundle::class => ['all' => true],
|
||||
Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true],
|
||||
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
|
||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
14
config/packages/flysystem.yaml
Normal file
14
config/packages/flysystem.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
flysystem:
|
||||
storages:
|
||||
mineseeker.media.storage:
|
||||
adapter: 'aws'
|
||||
options:
|
||||
client: 'Aws\S3\S3Client'
|
||||
bucket: 'mineseeker'
|
||||
prefix: 'media'
|
||||
mineseeker.cache.storage:
|
||||
adapter: 'aws'
|
||||
options:
|
||||
client: 'Aws\S3\S3Client'
|
||||
bucket: 'mineseeker'
|
||||
prefix: 'cache'
|
||||
21
config/packages/liip_imagine.yaml
Normal file
21
config/packages/liip_imagine.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
liip_imagine:
|
||||
driver: gd
|
||||
loaders:
|
||||
default:
|
||||
flysystem:
|
||||
filesystem_service: mineseeker.media.storage
|
||||
cache: minio_cache
|
||||
resolvers:
|
||||
minio_cache:
|
||||
flysystem:
|
||||
filesystem_service: mineseeker.cache.storage
|
||||
root_url: '%env(MINIO_PUBLIC_URL)%/mineseeker/cache'
|
||||
cache_prefix: 'liip'
|
||||
filter_sets:
|
||||
avatar_thumb:
|
||||
quality: 85
|
||||
filters:
|
||||
thumbnail:
|
||||
size: [ 150, 150 ]
|
||||
mode: outbound
|
||||
strip: ~
|
||||
@@ -1,3 +1,6 @@
|
||||
#index:
|
||||
# path: /
|
||||
# controller: App\Controller\DefaultController::index
|
||||
|
||||
_liip_imagine:
|
||||
resource: "@LiipImagineBundle/Resources/config/routing.yaml"
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
||||
public: false # Allows optimizing the container by removing unused services; this also means
|
||||
# fetching services directly from the container via $container->get() won't work.
|
||||
# The best practice is to be explicit about your dependencies anyway.
|
||||
# The best practice is to be explicit about your dependencies anyway.
|
||||
|
||||
# makes classes in src/ available to be used as services
|
||||
# this creates a service per class whose id is the fully-qualified class name
|
||||
@@ -24,3 +24,13 @@ services:
|
||||
App\Controller\:
|
||||
resource: '../src/Controller'
|
||||
tags: [ 'controller.service_arguments' ]
|
||||
|
||||
Aws\S3\S3Client:
|
||||
arguments:
|
||||
- version: 'latest'
|
||||
region: 'us-east-1'
|
||||
endpoint: '%env(MINIO_ENDPOINT)%'
|
||||
use_path_style_endpoint: true
|
||||
credentials:
|
||||
key: '%env(MINIO_ROOT_USER)%'
|
||||
secret: '%env(MINIO_ROOT_PASSWORD)%'
|
||||
|
||||
Reference in New Issue
Block a user