Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit b5045b9

Browse files
committed
Simplifies the module class for better type hint
1 parent dc0efa3 commit b5045b9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

doc/book/cookbook/setting-module-specific-layout.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,12 @@ Extend the module class to register the listener, e.g.
6161
namespace Admin;
6262

6363
use Application\Listener\LayoutListener;
64-
use Zend\EventManager\EventInterface;
65-
use Zend\ModuleManager\Feature\BootstrapListenerInterface;
64+
use Zend\Mvc\MvcEvent;
6665

67-
class Module implements BootstrapListenerInterface
66+
class Module
6867
{
69-
public function onBootstrap(EventInterface $e)
68+
public function onBootstrap(MvcEvent $e) : void
7069
{
71-
/** @var \Zend\Mvc\MvcEvent $e */
72-
7370
$application = $e->getApplication();
7471

7572
// Create and register layout listener

0 commit comments

Comments
 (0)