Releases: stubbles/stubbles-ioc
Releases · stubbles/stubbles-ioc
11.0.0 - 7 eleven
BC breaks
- raised minimum required PHP version to 8.2
- changed method declaration of
stubbles\ioc\InjectionProvider::get()
andstubbles\ioc\binding\Binding::getInstance()
to include the return type hintmixed
- changed type hint for param
$name
ofstubbles\ioc\binding\Binding::getInstance()
tostring|ReflectionClass|null
- changed return type hint of
stubbles\Environment::registerExceptionHandler()
andstubbles\Environment::registerErrorHandler()
from none tobool|object
- added mixed type hint to parameters and return values that were previously without any type hint
10.2.0 - More info, please
stubbles\environments\errorhandler\LogErrorHandler
now logs request uri as additional field if presentstubbles\environments\exceptionhandler\AbstractExceptionHandler
now logs request uri as additional field if presentstubbles\ExceptionLogger::log()
now accepts the request id as optional second argument
10.1.0 - Defaults are our favourite faults
- added new optional parameter
$default = null
tostubbles\ioc\binding\Session::value()
10.0.0 - Suddenly, types
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 ofstubbles\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
BC breaks
- raised minimum required PHP version to 7.3
- param
$projectPath
ofstubbles\ioc\module\BindingModule::configure()
is not optional anymore
Other changes
- fixed various type issues
8.0.1 - Types ain't easy
- fixed bug that typed map bindings lead to a
\TypeError
8.0.0 - When errors become exceptional
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- removed
stubbles\Rootpath
, usestubbles\values\Rootpath
instead, was deprecated since 7.1.0 - removed
stubbles\ResourceLoader
, usestubbles\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
- exception handler can now work with
\Error
7.1.0 - Restructure
- deprecated
stubbles\Rootpath
, usestubbles\values\Rootpath
instead, will be removed with 8.0.0 - deprecated
stubbles\ResourceLoader
, usestubbles\values\ResourceLoader
instead, will be removed with 8.0.0
7.0.0 - Inject the core
- split off from stubbles/core
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
, tostubbles\App
instead - removed
stubbles\lang\Mode
, usestubbles\Environment
instead - removed
stubbles\lang\DefaultMode::prod()
, usestubbles\environments\Production
instead - removed
stubbles\lang\DefaultMode::dev()
, usestubbles\environments\Development
instead - moved
stubbles\ioc\modules\Runtime
tostubbles\Runtime
- moved
stubbles\lang\errorhandler\ExceptionLogger
tostubbles\ExceptionLogger
- moved classes and functions from
stubbles\lang
tostubbles
- moved
stubbles\lang\ResourceLoader
tostubbles\ResourceLoader
- moved
stubbles\lang\Rootpath
tostubbles\Rootpath
- moved
- property
mode
of annotation@ImplementedBy
must now beenvironment
Other changes
- added
stubbles\ioc\Binder::createInjector(callable ...$applyBindings)