Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

6.0.0 - The release that wasn't but is

Compare
Choose a tag to compare
@mikey179 mikey179 released this 31 Dec 17:34
· 97 commits to master since this release

BC breaks

  • stubbles\ioc does not support setter injection any more, deprecated since 5.1.0
  • removed stubbles\ioc\Binder::setSessionScope(), deprecated since 5.4.0
  • removed old reflection, deprecated since 5.3.0:
    • stubbles\lang\reflect\BaseReflectionClass
    • stubbles\lang\reflect\MixedType
    • stubbles\lang\reflect\ReflectionClass
    • stubbles\lang\reflect\ReflectionExtension
    • stubbles\lang\reflect\ReflectionFunction
    • stubbles\lang\reflect\ReflectionMethod
    • stubbles\lang\reflect\ReflectionObject
    • stubbles\lang\reflect\ReflectionParameter
    • stubbles\lang\reflect\ReflectionPrimitive
    • stubbles\lang\reflect\ReflectionProperty
    • stubbles\lang\reflect\ReflectionRoutine
    • stubbles\lang\reflect\ReflectionType
    • stubbles\lang\reflect\matcher\MethodMatcher
    • stubbles\lang\reflect\matcher\PropertyMatcher
    • stubbles\lang\typeFor()
    • stubbles\lang\reflect\annotation\Annotatable
    • stubbles\lang\reflect\annotation\Annotations::of()
    • stubbles\lang\reflect() now returns PHP's internal reflection classes
    • Parse::toClass() now returns \ReflectionClass
  • removed stubbles\ioc\App::bindCurrentWorkingDirectory(), use stubbles\ioc\App::currentWorkingDirectory() instead, deprecated since 5.0.0
  • removed stubbles\ioc\App::bindHostname(), use stubbles\ioc\App::hostname() instead, deprecated since 5.0.0
  • removed several exceptions where build-in exceptions in PHP exist, deprecated since 5.0.0:
    • stubbles\lang\exception\IllegalAccessException, use LogicException instead
    • stubbles\lang\exception\IllegalArgumentException, use InvalidArgumentException instead
    • stubbles\lang\exception\IllegalStateException, use LogicException instead
    • stubbles\lang\exception\MethodInvocationException, use BadMethodCallException instead
    • stubbles\lang\exception\MethodNotSupportedException, use BadMethodCallException instead
    • stubbles\lang\exception\RuntimeException, use native RuntimeException instead
  • removed stubbles\lang\exception\Throwable, deprecated since 5.0.0
  • split stubbles\peer\Socket into two classes
    • stubbles\peer\Socket::connect() now returns an instance of stubbles\peer\Stream
    • all functionallity to read and write on a socket is now in stubbles\peer\Stream
  • removed stubbles\peer\BsdSocket
  • stubbles\peer\IpAddress::openSocket() and stubbles\peer\IpAddress::openSecureSocket() now return stubbles\peer\Stream

Other changes

  • added stubbles\lang\Result
  • @ImplementedBy can now be speficied per runtime mode
  • it is not required any more to mark constructors with @Inject when they should be subject to dependency injection
  • added stubbles\peer\IpAddress::createSocket() and stubbles\peer\IpAddress::createSecureSocket()
  • improved speed for stubbles\peer\http\HttpUri::hasDnsRecord() by checking only relevant DNS records
  • sequences returned from the following methods now have the name of the method/property/parameter as key:
    • stubbles\lang\reflect\methodsOf()
    • stubbles\lang\reflect\propertiesOf()
    • stubbles\lang\reflect\parametersOf()
    • stubbles\lang\reflect\parametersOfConstructor()
    • stubbles\lang\reflect\parameter()
    • stubbles\lang\reflect\constructorParameter()