Releases: ItalyStrap/config
Config API v2.2.2
New Release
This fixes BC breaks for parameter string type declaration declared in ConfigInterfaces for old ItalyStrap installation.
Config API v2.2.1
New version
This fixes "Argument of an invalid type ItalyStrap\Config\ConfigInterface supplied for foreach, only iterables are supported.# was not matched in reported errors."
Config API v2.2.0
New Version
Added cloning behavior, now when you clone the object you will gat and empty one, usefull if you need a new empty instance.
Added child class for hooking the getter method. (Not yet ready for production, maybe need more test)
Fix
Fixed a bug when you call Config::has()
and Config::get()
more than once consecutively
Removed
Removed the ability to call builtin array function, maybe in future they will be added with a decorator or a proxy.
Config API v2.1.1
This fix the license issue, I forgot to link the new license file in readme.
Config API v2.1.0
New version
This is not a breacking changes but a little refactoring was made for implementing the new API for searching array sub keys.
Now $config->has( $key )
and $config->get( $key )
can find sub values on the array storage with dot separator $config->get( 'key.subkey' )
.
Only the $config->push( $key, $value )
is deprecated in favour of $config->add( $key, $value )
New methods
$config->toArray()
// Return the array storage
$config->toJson()
// Return the json of the array storage
Only for internal use you can also call the array_* builtin functions like this
$config->array_keys()
// Return all storage keys
Remeber that this is not ready for production.
New interface and factory to use
use ItalyStrap\Config\ConfigInterface
and
ConfigFactory::make( $arr, $aar1 );
The old Config_Interface
and Config_Factory
are deprecated for PSR compatibility
Config API v2.0.0
Changed API to PHP7 compat.
New method class::remove();
class::remove( 'key' );
class::remove( [ 'key ] );
class::remove( 'key', [ 'key' ] );
Config API v1.1.0
Added some tests
Added new Method ::merge( $array );
Config API v1.0.0
Stable version
Config API v0.0.1-alpha
Alpha version for the PHP config library