Skip to content

Commit

Permalink
fix code to support symfony 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Sep 15, 2016
1 parent 14d947a commit 7c58ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/GaufretteAdapter/Internal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c58ae6

Please sign in to comment.