You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand how to create this file with PhpGenerator alone and how to load the class with existing bodies, per the instructions above. But how do I get the PhpNamespace instance, so I can tweak the methods and generate the class with the uses and everything else?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I see how to modify a class: https://github.com/nette/php-generator?tab=readme-ov-file#generating-from-existing-ones
But I'm missing how to modify an entire namespace, and in particular, and struggling how to copy the
use
statement.I feel like I'm missing something simple. For example, I want to inject
I want to inject an entity manager
I understand how to create this file with PhpGenerator alone and how to load the class with existing bodies, per the instructions above. But how do I get the PhpNamespace instance, so I can tweak the methods and generate the class with the uses and everything else?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions