-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rename Phalcon\Assets\Resource #12082
Comments
ResourceAware and ResourceInterface don't need renaming though. I think if it's in namespace don't need too, just class names like How we can remove https://github.com/phalcon/cphalcon/blob/master/phalcon/acl/resourceaware.zep ? The ResourceInterface is for other thing. ResourceInterface is for using with addResource/addRole, ResourceAware for using with isAllowed(like for example models can implement it, and in MANY situations you can have |
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues |
@sergeyklay Renaming the Assets is easy, should have that done reasonably soon. As far as the ACL is concerned. I propose the following
Also if we move to
This pretty much changes the verbiage to |
* niden-T12082-resource-rename-2: [#12082] - Updated the changelog; reenabled cli/integration [#12082] - More tests [#12082] - PHPCS [#12082] - Added more tests for Assets\Inline [#12082] - Temporarily disabling other suites [#12082] - Added assets/getContent tests [#12082] - PHPCS [#12082] - Reset the Di [#12082] - Added filter tests [#12082] - More assets tests assets\asset [#12082] - More tests refactored [#12082] - Corrected tests and PHPCS [#12082] - Added tests for asset getLocal, getPatha [#12082] - Moved old tests in the check folder; Added Asset tests [#12082] - [#12082] - Renamed folder [#12082] - Renamed Assets\Resource to Assets\Asset
This has been addressed |
I suggest to rename
Resource
, beacause it's on soft reserved word of PHP.To rename:
Phalcon\Assets\Resource
(Phalcon\Assets\Asset
)Phalcon\Assets\Resource\Css
(Phalcon\Assets\Asset\Css
)Phalcon\Assets\Resource\Js
(Phalcon\Assets\Asset\Js
)The text was updated successfully, but these errors were encountered: