Skip to content

Releases: tomphp/container-configurator

1.0.0

31 Oct 18:36
Compare
Choose a tag to compare

Added

  • Inflector support for Pimple.
  • Custom file readers with withFileReader(string $extension, string $readerClass);.
  • Custom container adapters with withContainerAdapter(string $containerName, string $adapterName);.

0.5.2

30 Sep 13:48
Compare
Choose a tag to compare

Added

  • Service aliases.
  • Container injection using Configurator::container().

Fixed

  • Non-string arguments can be provided to Pimple services.

0.5.1

18 Sep 14:26
Compare
Choose a tag to compare

Added

  • TomPHP\ContainerConfigurator\FileReader\YAMLFileReader for reading
    YAML files (requires symfony/yaml to be installed)
  • Service factories

0.5.0

13 Sep 09:02
Compare
Choose a tag to compare

Added

  • 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.

Changed

  • 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.

Removed

  • TomPHP\ConfigServiceProvider\ConfigServiceProvider
  • Custom configurable service providers (TomPHP\ConfigServiceProvider\ConfigurableServiceProvider).
  • Custom sub-providers.
  • TomPHP\ConfigServiceProvider\Exception\RuntimeException

0.4.0

25 May 22:03
Compare
Choose a tag to compare

Added

  • Exception thrown when no files are found when using the fromFiles constructor

Changed

  • Config containing class names will remain as strings and not be converted to instances

0.3.3

10 Oct 14:11
Compare
Choose a tag to compare
  • Added: Configuring DI via the config

0.3.2

24 Sep 12:34
Compare
Choose a tag to compare
  • Added: Reading JSON config files via the fromFiles constructor
  • Added: Support from braces in file globbing patterns

0.3.1

23 Sep 23:23
Compare
Choose a tag to compare
  • Added: Reading config files (PHP and JSON)

0.3.0

23 Sep 21:45
Compare
Choose a tag to compare
  • Added: ConfigServiceProvider::fromConfig() factory method
  • Added: Sub providers
  • Updated: TomPHP\ConfigServiceProvider\InflectorConfigServiceProvider is
    now a sub provider
  • Update: Provider classes are marked as final
  • Removed: TomPHP\ConfigServiceProvider\Config static factory

0.2.1

21 Sep 21:18
Compare
Choose a tag to compare
  • Added: Support to set up inflectors via configuration
  • Added: TomPHP\ConfigServiceProvider\Config - a static class to enable easy
    setup.