zf-console 1.3.0
Added
-
#28 adds the ability to provide an
Interop\Container\ContainerInterfaceinstance toZF\Console\Dispatcherduring instantiation; when present,dispatch()will attempt to look up command callables via the container. This allows simpler configuration:$dispatch = new Dispatcher($container); $routes = [ [ 'name' => 'hello', 'handler' => HelloCommand::class, ], ]; $app = new Application('App', 1.0, $routes, null, $dispatcher);
(vs wrapping the handler in a closure.)
-
#29 adds the ability to disable output of the banner in two ways:
$application->setBannerDisabledForUserCommands(true); $application->setBanner(null);
You may also now disable a previously enabled footer by passing a null value:
$application->setFooter(null);
-
#30 adds
ZF\Console\DispatcherInterface, which defines the methodsmap(),has(), anddispatch();Dispatchernow implements the interface. By providing an interface, consumers may now provide their own implementation when desired. -
#35 adds support for v3 components from Zend Framework, retaining backwards compatibility with v2 releases.
Deprecated
- Nothing.
Removed
- #35 removes support for PHP 5.5.
Fixed
- #34 updates the
ExceptionHandlerto allow handling either exceptions or PHP 7Throwables.