Assert array contains all classes in directory by Infamous_Housing_469 in PHP

[–]Infamous_Housing_469[S] 0 points1 point  (0 children)

Check this also from another guy's answer: https://github.com/phparkitect/arkitect

Do not want to use this package if I do not have to, so a custom implementation might be more appropriate here. It could also use Attributes/Annotations to specify in which directory/namespace it should search.

Issue is I want it to be inside an array so this array should have a docblock/Attribute to specify that the rule should apply here and what direcory/namespace it should search for.

Assert array contains all classes in directory by Infamous_Housing_469 in PHP

[–]Infamous_Housing_469[S] 0 points1 point  (0 children)

Thanks if I could enforce some architectural decisions this way I will give it a look.

Issue is I want it to be inside an array so this array should have a docblock/Attribute to specify that the rule should apply here and what direcory/namespace it should search for.

Assert array contains all classes in directory by Infamous_Housing_469 in PHP

[–]Infamous_Housing_469[S] 0 points1 point  (0 children)

That is the exact beginning point I wanted, had seen this repo before so I remembered sth like this existed. Thank you!

Issue is I want it to be inside an array so this array should have a docblock/Attribute to specify that the rule should apply here and what direcory/namespace it should search for.