{"id":41198524,"url":"https://github.com/adtechpotok/symfony-aware","last_synced_at":"2026-01-22T20:39:30.772Z","repository":{"id":56941317,"uuid":"136173639","full_name":"adtechpotok/symfony-aware","owner":"adtechpotok","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-27T20:43:26.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T17:28:20.181Z","etag":null,"topics":["aware","php","symfony"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adtechpotok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-05T12:25:13.000Z","updated_at":"2020-11-09T09:26:01.000Z","dependencies_parsed_at":"2022-08-21T07:20:21.927Z","dependency_job_id":null,"html_url":"https://github.com/adtechpotok/symfony-aware","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/adtechpotok/symfony-aware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtechpotok%2Fsymfony-aware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtechpotok%2Fsymfony-aware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtechpotok%2Fsymfony-aware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtechpotok%2Fsymfony-aware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adtechpotok","download_url":"https://codeload.github.com/adtechpotok/symfony-aware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adtechpotok%2Fsymfony-aware/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28670516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aware","php","symfony"],"created_at":"2026-01-22T20:39:30.261Z","updated_at":"2026-01-22T20:39:30.762Z","avatar_url":"https://github.com/adtechpotok.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/adtechpotok/symfony-aware.svg?branch=master)](https://travis-ci.org/adtechpotok/symfony-aware)\n[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/adtechpotok/symfony-aware/master/LICENSE)\n\n# Aware\n\n#### Пример использования\n\n##### Сервис\n```php\n\u003c?php\n\nuse Adtechpotok\\Aware\\Interfaces\\EntityManagerAwareInterface;\nuse Adtechpotok\\Aware\\Traits\\EntityManagerAwareTrait;\n\nclass SomeClass implements EntityManagerAwareInterface\n{\n    use EntityManagerAwareTrait;\n    \n    public function someMethod()\n    {\n        dump($this-\u003eem); // $em - дефолтный EntityManager, аналог '@doctrine.orm.default_entity_manager'\n    }\n}\n``` \n\n##### Объявление сервиса\n```yaml\nservices:\n    some.service:\n        class: SomeClass\n        calls:\n            - {method: setEntityManager, arguments: ['@doctrine.orm.default_entity_manager']}\n```\n\n##### Таблица соответствий \n| Aware                  | Service                                |\n| ---------------------- | -------------------------------------- |\n| ConnectionAware        | `@doctrine.dbal.default_connection`    |\n| CacheAware             | `@cache.app`                           |\n| ContainerAware         | `@service_container`                   |\n| DoctrineAware          | `@doctrine`                            |\n| EntityManagerAware     | `@doctrine.orm.default_entity_manager` |\n| EventDispatcherAware   | `@debug.event_dispatcher`              |\n| FilesystemAware        | `@filesystem`                          |\n| FileLocatorAware       | `@file_locator`                        |\n| FileLinkFormatterAware | `@debug.file_link_formatter`           |\n| HttpKernelAware        | `@http_kernel`                         |\n| KernelAware            | `@kernel`                              |\n| LoggerAware            | `@monolog.logger`                      |\n| PropertyAccessorAware  | `@property_accessor`                   |\n| ReaderAware            | `@annotations.cached_reader`           |\n| RequestStackAware      | `@request_stack`                       |\n| StopwatchAware         | `@debug.stopwatch`                     |\n\n##### Объявление сервиса в Symfony \u003e= 3.3\n```yaml\nservices:\n    _defaults:\n        autowire: true\n        \n    some.service:\n        class: SomeClass\n```\n**Важно!** При объявлении сервисов, которые требуют использования тэгов - этот способ не подоходит, Symfony игнорирует тэги при `autowire`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadtechpotok%2Fsymfony-aware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadtechpotok%2Fsymfony-aware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadtechpotok%2Fsymfony-aware/lists"}