-
Notifications
You must be signed in to change notification settings - Fork 9
Add method Store #24
base: master
Are you sure you want to change the base?
Add method Store #24
Conversation
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.
Thanks for your PR can you rebase it from master and also fix the conflict ;)
Registry.php
Outdated
*/ | ||
public static function store (array $contain) { | ||
|
||
if(false === is_array($contain)) |
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.
Not needed as it's already defined as type of argument.
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.
Ok thanks
Registry.php
Outdated
@@ -78,7 +71,7 @@ class Registry extends \ArrayObject { | |||
public function __construct ( ) { | |||
|
|||
throw new Exception( | |||
'Cannot instance the %s object. Use set, get, remove ' . | |||
'Cannot instance the %s object. Use set, get,store, remove ' . |
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.
Add space before store ;)
@maitrepylos it's rebased now it's operational you can add unit tests to cover the case. Thanks |
ping @maitrepylos do you need any help about it ? |
ping @vonglasow Hi, are you asking me to run tests? I don't know where to start! |
it was to add some tests to cover your feature we can discuss about it on IRC to help you. |
Hello, for one of my projects, I use Registry and I added a method to pass a configuration array, and it's easy for me to do it like that rather than using the set() method every time.