Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]custom repository jako usługa w Symfony. Drugi argument konstruktora
porzeczki
post
Post #1





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Co mam wstrzyknąć jako drugi argument konstruktora w serwisie gdy nadpisuję klasę repository?

  1. class EntityRepository implements ObjectRepository, Selectable
  2. {
  3. /**
  4.   * @param EntityManager $em The EntityManager to use.
  5.   * @param Mapping\ClassMetadata $class The class descriptor.
  6.   */
  7. public function __construct($em, Mapping\ClassMetadata $class)
  8. {


  1. app.zamowienie_repository:
  2. class: "%app.zamowienie.paginator_aware.class%"
  3. arguments: [ "@doctrine.orm.entity_manager" ]


Ten post edytował porzeczki 27.10.2016, 14:17:49
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 04:07