diff --git a/src/GaufretteAdapter/Internal.php b/src/GaufretteAdapter/Internal.php index d2c2de0..2ab70f5 100644 --- a/src/GaufretteAdapter/Internal.php +++ b/src/GaufretteAdapter/Internal.php @@ -3,14 +3,12 @@ namespace Sokil\FileStorageBundle\GaufretteAdapter; use Sokil\FileStorageBundle\Repository\FileRepository; -use Gaufrette\Util; use Gaufrette\Adapter; use Gaufrette\Adapter\ChecksumCalculator; use Gaufrette\Adapter\SizeCalculator; use Gaufrette\Adapter\MimeTypeProvider; use Gaufrette\Adapter\StreamFactory; use Gaufrette\Stream; -use Gaufrette\Exception; use Sokil\FileStorageBundle\GaufretteAdapter\Internal\PathStrategy\PathStrategyInterface; class Internal implements diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 580de84..3594dfb 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -7,11 +7,10 @@ services: - '@knp_gaufrette.filesystem_map' file_storage.repository.file_repository: - class: Sokil\FileStorageBundle\Repository\FileRepositoy - factory_service: doctrine.orm.default_entity_manager - factory_method: getRepository + class: Sokil\FileStorageBundle\Repository\FileRepository + factory: ['@doctrine.orm.default_entity_manager', getRepository] arguments: - - Sokil\FileStorageBundle\Entity\File + - 'Sokil\FileStorageBundle\Entity\File' file_storage.adapter.internal.pathstrategy.chunkpath: class: Sokil\FileStorageBundle\GaufretteAdapter\Internal\PathStrategy\ChunkPathStrategy