Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get command verbosity in fixtures ? #378

Open
CaptainFalcon92 opened this issue Jan 14, 2023 · 0 comments
Open

How to get command verbosity in fixtures ? #378

CaptainFalcon92 opened this issue Jan 14, 2023 · 0 comments

Comments

@CaptainFalcon92
Copy link

CaptainFalcon92 commented Jan 14, 2023

Hello.

I had a special request from a customer for verbosity-level-aware fixtures but could not deliver such a feature. I simply wanted to know the verbosity level the doctrine:fixture:load command was run at in order to display messages.

I wonder if there is a way of getting access to the verbosity level within a fixture load() or method ?
Even better would be to access the Output instance.
So far i found no such consideration in the bundle.

I wanted to extends the SymfonyFixturesLoader service but of course the class is final..
I am now trying to either set $output into all fixtures

Sad it is not passed as argument in $executor->execute($fixtures, $input->getOption('append'));

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant