All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Inflector support for Pimple.
- Custom file readers with
withFileReader(string $extension, string $readerClass);
. - Custom container adapters with
withContainerAdapter(string $containerName, string $adapterName);
.
- Service aliases.
- Container injection using
Configurator::container()
.
- Non-string arguments can be provided to Pimple services.
TomPHP\ContainerConfigurator\FileReader\YAMLFileReader
for reading YAML files (requiressymfony/yaml
to be installed).- Service factories.
TomPHP\ContainerConfigurator\Configurator
as the main API.- If
class
is left out of the config for a service, then the service name is assumed to be the name of the class. - Services can be set as singleton by default.
- All exceptions implement
TomPHP\ContainerConfigurator\Exception\Exception
. - Support for Pimple.
- The composer package has been renamed to
container-configurator
. - The package namespace has changed to
TomPHP\ContainerConfigurator
. - Minimum supported PHP version is now
5.6
. - Exception base-classes have been updated.
- File reader classes have moved to
TomPHP\ContainerConfigurator\FileReader
.
TomPHP\ConfigServiceProvider\ConfigServiceProvider
- Custom configurable service providers (
TomPHP\ConfigServiceProvider\ConfigurableServiceProvider
). - Custom sub-providers.
TomPHP\ConfigServiceProvider\Exception\RuntimeException
- Exception thrown when no files are found when using the
fromFiles
constructor
- Config containing class names will remain as strings and not be converted to instances
- Configuring DI via the config
- Reading JSON config files via the
fromFiles
constructor - Support from braces in file globbing patterns
- Reading config files (PHP and JSON)
ConfigServiceProvider::fromConfig()
factory method- Sub providers
TomPHP\ConfigServiceProvider\InflectorConfigServiceProvider
is now a sub provider- Provider classes are marked as final
TomPHP\ConfigServiceProvider\Config
static factory
- Support to set up inflectors via configuration
TomPHP\ConfigServiceProvider\Config
- a static class to enable easy setup.
- Now depends on League Container
^2.0.2
TomPHP\ConfigServiceProvider\ConfigServiceProvider
now extendsLeague\Container\ServiceProvider\AbstractServiceProvider
- Contributing guidelines
composer test
to run test suite- Make sub-arrays accessible directly
- Make League Container dependency stricter (use
^
version)
## [0.1.1] - 2014-04-12
- CHANGELOG.md
- Homepage field to composer.json
- Typo in README.md
- Service provider for
league/container
- Support for multiple levels of config