Aura PHP v2.0.0-beta1 Release Notes

  • ๐ŸŽ‰ Initial 2.0 beta release.

    • Container v1 configurations should still work, with one exception: the lazyCall() method has been removed in favor of just lazy(). Replace lazyCall() with lazy() and all should be well.

    • Now compatible with PHP 5.3.

    • ๐Ÿ‘‰ Uses PSR-4 autoloading instead of PSR-0.

    • The package now has a series of Lazy classes to represent different types of lazy behaviors, instead of using anonymous functions.

    • No more cloning of Container objects; that was a holdover from when we had sub-containers very early in v1 and never really used.

    • Removed Forge and placed functionality into Container.

    • Removed the old Config object; $params and $setter are now properties on the Container.

    • No more top-level '*' config element.

    • Renamed Container getServices() to getInstances().

    • Renamed Container getDefs() to getServices().

    • Added ContainerBuilder and new Config object for two-stage configuration.

    • ๐Ÿ”ง Now honors $setter values on interface configuration; that is, you can configure a setter on an interface, and classes implementing that interface will honor that value unless overridden by a class parent.

    ๐Ÿš€ Thanks to HariKT, Damien Patou, Jesse Donat, jvb, and Grummfy for their contributions leading to this release!