Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Conversation

Brammm
Copy link
Contributor

@Brammm Brammm commented Apr 2, 2013

By making $map protected and moving the actual declaration to the
__construct, you make it easier to extend the BasicPermissionMap.

At the moment, if you want to extend it, you have to copy/paste the
entire $map variable into your own class. I feel it makes more sense
to call the parent::__construct in your own mapping and add your own
mappings to the variable, instead of having to replace it completely. 

By making $map protected and moving the actual declaration to the 
__construct, you make it easier to extend the BasicPermissionMap.

At the moment, if you want to extend it, you have to copy/paste the 
entire $map variable into your own class. I feel it makes more sense
to call the parent::__construct in your own mapping and add your own 
mappings to the variable, instead of having to replace it completely. 
@Brammm Brammm closed this Apr 8, 2013
@Brammm Brammm deleted the patch-1 branch April 8, 2013 13:05
symfony-splitter pushed a commit that referenced this pull request Jan 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant