V
V
Vladislav2016-09-02 16:02:38
JavaScript
Vladislav, 2016-09-02 16:02:38

Is it possible to inherit a class from a service that has autowire: true?

There is a Model class for it set to autowire: true

services:
    topics_model:
        class: AppBundle\Models\Model
        autowire: true

There is a UserModel class that I want to inherit from Model. Is there a way to keep the autowire: true setting for classes that inherit from Model? Or is it possible to somehow define this setting for all services, so as not to list them in services.yml?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2016-09-03
@MrBikus

In short, there is a chic bundle that solves this problem https://github.com/dunglas/DunglasActionBundle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question