1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-28 01:30:11 -07:00
PrintABrick/app/config/services.yml
2017-06-21 22:20:51 +02:00

53 lines
1.4 KiB
YAML

imports:
- { resource: service/legacy_aliases.yml }
- { resource: service/front.yml }
- { resource: service/loader.yml }
services:
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, event subscribers, etc.
autoconfigure: true
public: false
AppBundle\:
resource: '../../src/AppBundle/*'
exclude: '../../src/AppBundle/{Entity,Repository,Exception,Api}'
app.relations.cache_provider:
class: Doctrine\Common\Cache\ArrayCache
app.brickset.cache_provider:
class: Doctrine\Common\Cache\PhpFileCache
arguments: ["%kernel.cache_dir%/brickset", ".cache.php"]
AppBundle\Api\Client\Brickset\BricksetClient:
arguments:
$apiKey: '%brickset_apikey%'
AppBundle\Api\Client\Rebrickable\RebrickableClient:
arguments:
$apiKey: '%rebrickable_apikey%'
AppBundle\Api\Manager\RebrickableManager: ~
AppBundle\Api\Manager\BricksetManager:
arguments:
$cache: '@app.brickset.cache_provider'
# Filesystem
League\Flysystem\FilesystemInterface:
alias: oneup_flysystem.media_filesystem
# ElasticSearch
FOS\ElasticaBundle\Manager\RepositoryManagerInterface:
alias: fos_elastica.repository_manager
AppBundle\Service\SearchService:
arguments:
- '@fos_elastica.manager'