Skip to content

Commit

Permalink
Ajout du logo dans l'administration de l'organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchois committed Nov 12, 2024
1 parent 101be2f commit d840b19
Show file tree
Hide file tree
Showing 13 changed files with 483 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ APP_METABASE_SECRET_KEY=
LOCK_DSN=flock
###< symfony/lock ###
DIALOG_ORG_ID=e0d93630-acf7-4722-81e8-ff7d5fa64b66
APP_UPLOAD_SOURCE="memory"
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"firebase/php-jwt": "^6.10",
"jsor/doctrine-postgis": "^2.1",
"league/commonmark": "^2.4",
"league/flysystem-bundle": "^3.3",
"league/flysystem-memory": "^3.29",
"martin-georgiev/postgresql-for-doctrine": "^2.6",
"nelmio/security-bundle": "^3.0",
"sentry/sentry-symfony": "^4.5",
Expand Down
305 changes: 302 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Expand All @@ -20,4 +18,5 @@
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
];
23 changes: 23 additions & 0 deletions config/packages/flysystem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
#Aws\S3\S3Client:
# arguments:
# - version: 'latest'
# region: '%env(string:AWS_REGION)%'
# credentials:
# key: '%env(string:AWS_CREDENTIALS_KEY)%'
# secret: '%env(string:AWS_CREDENTIALS_SECRET)%'

flysystem:
storages:
#cdn.storage:
# adapter: 'outscale'
# options:
# client: Aws\S3\S3Client
# bucket: '%env(AWS_BUCKET)%'
# streamReads: true
memory.storage:
adapter: 'memory'
storage:
adapter: 'lazy'
options:
source: '%env(APP_UPLOAD_SOURCE)%'
14 changes: 14 additions & 0 deletions src/Application/StorageInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

namespace App\Application;

use Symfony\Component\HttpFoundation\File\UploadedFile;

interface StorageInterface
{
public function write(string $folder, string $fileName, UploadedFile $file): string;

public function delete(string $path): void;
}
Loading

0 comments on commit d840b19

Please sign in to comment.