mercredi 16 mai 2018

For each class in directory

I'm facing a question, I'm making a command on Symfony which is supposed to launch different operations (undefined for the moment) so I would like to create a directory, put all operations in different files but in this directory and browse it when the command is launched.

/MyCommand.php /Verifications/CheckUser.php /Verifications/CheckEmail.php /Verifications/...

Do you have a better way to avoid to declare them into MyCommand ? Any design pattern ? How can I get all those class ?

Thanks all!

Aucun commentaire:

Enregistrer un commentaire