chrisandchris/passive-record-orm

View on GitHub
src/ChrisAndChris/Common/RowMapperBundle/Resources/config/services.yml

Summary

Maintainability
Test Coverage
services:
  common_rowmapper.dependencyprovider:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Model\ModelDependencyProvider
    arguments:
      - '@common_rowmapper.pdo.factory'
      - '@common_rowmapper.rowmapperfactory'
      - '@common_rowmapper.errorhandler'
      - '@common_rowmapper.querybuilderfactory'
  common_rowmapper.pdolayer:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Pdo\PdoLayer
    arguments:
      - '%database_driver%'
      - '%database_host%'
      - '%database_port%'
      - '%database_name%'
      - '%database_user%'
      - '%database_password%'
  common_rowmapper.rowmapper:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Mapper\RowMapper
    arguments:
      - '@event_dispatcher'
      - '@common_rowmapper.type_caster'
  common_rowmapper.type_caster:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Mapper\TypeCaster
  common_rowmapper.rowmapperfactory:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Mapper\RowMapperFactory
    arguments:
      - '@event_dispatcher'
  common_rowmapper.errorhandler:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Model\ErrorHandler
  common_rowmapper.querybuilder:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\Builder
    factory: [ChrisAndChris\Common\RowMapperBundle\Services\Query\BuilderFactory, createBuilder]
  common_rowmapper.querybuilderfactory:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\BuilderFactory
    arguments:
      - '@common_rowmapper.defaultparser'
      - '@common_rowmapper.typebag'
  common_rowmapper.defaultparser:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\Parser\DefaultParser
    arguments:
      - '@event_dispatcher'
      - '%database_driver%'
  common_rowmapper.typebag:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\Parser\TypeBag
  common_rowmapper.snippetbag.mysql:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\Parser\Snippets\MySqlBag
    tags:
      - { name: kernel.event_subscriber }
  common_rowmapper.snippetbag.pgsql:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Query\Parser\Snippets\PgSqlBag
    tags:
      - { name: kernel.event_subscriber }
  common_rowmapper.model:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Model\ConcreteModel
    arguments:
      - '@common_rowmapper.dependencyprovider'
      - '@logger'
  common_rowmapper.pdo.factory:
    class: ChrisAndChris\Common\RowMapperBundle\Services\Pdo\PdoFactory
    arguments:
      - '@common_rowmapper.pdolayer'
      - '%chris_and_chris_row_mapper%'
  common_rowmapper.process:
    class: ChrisAndChris\Common\RowMapperBundle\Services\BusinessProcess
    arguments:
      - '%kernel.environment%'
      - '@common_rowmapper.pdolayer'
      - '@logger'
      - '@event_dispatcher'