-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: sitekit resource loader #2
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should follow the common practice to call Exception
classes "Exception" - InvalidResourceException
and ResourceNotFoundException
in this case. I'd also change the namespace to the singular Exception
instead of Exceptions
.
The Resource
class may be better of beeing abstract
or even an interface
. Either way we should try to avoid constructors with this many arguments.
Lastly, is there a specific reason why all tests are missing declare(strict_types=1)
?
It is now very common to omit the exception suffix. This information is also redundant, since it is contained in the package name. See e.g.
I would like to stay with the form without |
Generally I'd agree that suffixes depicting superclasses or namespaces are redundent. Either way, somehow this feels off. I can't really tell wether this is just my perception or if |
In agreement from the last meeting, I add the |
These two points from my last comment might have gotten lost:
I have nothing else to add other than that 👍 |
I don't know exactly what we're doing with this class yet. So I would leave that open for the time being.
No, that was not intentional. It was added. |
No description provided.