Skip to content

Releases: stubbles/stubbles-ioc

11.0.0 - 7 eleven

01 Jan 18:44
v11.0.0
4a17a7f
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 8.2
  • changed method declaration of stubbles\ioc\InjectionProvider::get() and stubbles\ioc\binding\Binding::getInstance() to include the return type hint mixed
  • changed type hint for param $name of stubbles\ioc\binding\Binding::getInstance() to string|ReflectionClass|null
  • changed return type hint of stubbles\Environment::registerExceptionHandler() and stubbles\Environment::registerErrorHandler() from none to bool|object
  • added mixed type hint to parameters and return values that were previously without any type hint

10.2.0 - More info, please

25 Dec 13:14
v10.2.0
de7ba8a
Compare
Choose a tag to compare
  • stubbles\environments\errorhandler\LogErrorHandler now logs request uri as additional field if present
  • stubbles\environments\exceptionhandler\AbstractExceptionHandler now logs request uri as additional field if present
  • stubbles\ExceptionLogger::log() now accepts the request id as optional second argument

10.1.0 - Defaults are our favourite faults

18 Dec 09:27
Compare
Choose a tag to compare
  • added new optional parameter $default = null to stubbles\ioc\binding\Session::value()

10.0.0 - Suddenly, types

13 Dec 11:31
Compare
Choose a tag to compare

BC breaks

  • added return type void to various methods:
    • stubbles\ioc\module\BindingModule::configure()
    • stubbles\ioc\binding\Session::putValue()
    • stubbles\environments\exceptionhandler\ExceptionHandler::handleException()
  • removed parameter $context from all methods of stubbles\environments\errorhandler\ErrorHandler, parameter is deprecated since PHP 7.2

Other changes

  • added more phpstan related type hints

9.0.0 - IoC ain't dead yet

12 Nov 12:57
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.3
  • param $projectPath of stubbles\ioc\module\BindingModule::configure() is not optional anymore

Other changes

  • fixed various type issues

8.0.1 - Types ain't easy

30 Jul 10:08
Compare
Choose a tag to compare
  • fixed bug that typed map bindings lead to a \TypeError

8.0.0 - When errors become exceptional

22 Jul 18:14
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.0.0
  • introduced scalar type hints and strict type checking
  • removed stubbles\Rootpath, use stubbles\values\Rootpath instead, was deprecated since 7.1.0
  • removed stubbles\ResourceLoader, use stubbles\values\ResourceLoader instead, was deprecated since 7.1.0

Other changes

  • removed error handler for E_RECOVERABLE_ERROR of type argument type violations, was superseded by PHP's \TypeError

7.1.1 - Errors can be exceptional

06 Jul 20:21
Compare
Choose a tag to compare
  • exception handler can now work with \Error

7.1.0 - Restructure

08 Jun 13:15
Compare
Choose a tag to compare
  • deprecated stubbles\Rootpath, use stubbles\values\Rootpath instead, will be removed with 8.0.0
  • deprecated stubbles\ResourceLoader, use stubbles\values\ResourceLoader instead, will be removed with 8.0.0

7.0.0 - Inject the core

15 Jan 15:38
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 5.6
  • changed stubbles\ioc\module\BindingModule::configure() to accept an optional second parameter $projectPath
  • moved stubbles\ioc\App, to stubbles\App instead
  • removed stubbles\lang\Mode, use stubbles\Environment instead
  • removed stubbles\lang\DefaultMode::prod(), use stubbles\environments\Production instead
  • removed stubbles\lang\DefaultMode::dev(), use stubbles\environments\Development instead
  • moved stubbles\ioc\modules\Runtime to stubbles\Runtime
  • moved stubbles\lang\errorhandler\ExceptionLogger to stubbles\ExceptionLogger
  • moved classes and functions from stubbles\lang to stubbles
    • moved stubbles\lang\ResourceLoader to stubbles\ResourceLoader
    • moved stubbles\lang\Rootpath to stubbles\Rootpath
  • property mode of annotation @ImplementedBy must now be environment

Other changes

  • added stubbles\ioc\Binder::createInjector(callable ...$applyBindings)