File: src/AppBundle/Resources/config/services.yml

Recommend this page to a friend!
  Classes of Sergii Pryz  >  PHP CSV Import to MySQL  >  src/AppBundle/Resources/config/services.yml  >  Download  
File: src/AppBundle/Resources/config/services.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP CSV Import to MySQL
Import user data from CSV files into MySQL
Author: By
Last change:
Date: 2 years ago
Size: 1,660 bytes
 

Contents

Class file image Download
services:
  # model
  object_manager:
    class: AppBundle\Model\ObjectManager

  # entity
  entity_import_user:
    class: AppBundle\Entity\ImportUser

  # builder
  builder_import_user_factory:
    class: AppBundle\Model\Builder\ImportUserFactory
    arguments: ["@object_manager"]

  builder_import_result_factory:
   class: AppBundle\Model\Builder\ImportResultFactory
   arguments: ["@object_manager"]

  # manager
  manager_import_user:
    class: AppBundle\Model\Manager\ImportUserManager
    arguments: ["@=service('doctrine.orm.entity_manager')"]

  # csv/builder
  csv_builder_row_factory:
    class: AppBundle\Model\Csv\Builder\RowFactory
    arguments: ["@object_manager"]

  csv_builder_path_factory:
    class: AppBundle\Model\Csv\Builder\PathFactory
    arguments: ["@object_manager"]

  csv_builder_reader_factory:
    class: AppBundle\Model\Csv\Builder\ReaderFactory
    arguments: ["@object_manager", "@csv_builder_row_factory"]

  csv_builder_reader_iteration_factory:
    class: AppBundle\Model\Csv\Builder\ReaderFilterIteratorFactory
    arguments: ["@object_manager", "@csv_builder_reader_factory", "@csv_filter_comment"]

  # csv/filter
  csv_filter_comment:
    class: AppBundle\Model\Csv\Filter\CommentFilter

  # service
  service_import_csv_user:
    class: AppBundle\Service\ImportCsvUser
    arguments: ["@=service('doctrine.orm.entity_manager')", "@=service('validator')", "@csv_builder_reader_iteration_factory", "@builder_import_user_factory", "@manager_import_user", "@builder_import_result_factory"]

  service_age_average:
    class: AppBundle\Service\AgeStatistics
    arguments: ["@=service('doctrine.orm.entity_manager')"]
For more information send a message to info at phpclasses dot org.