Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Laminas #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Module
{
public function onBootstrap($e)
{
$e->getApplication()->getEventManager()->getSharedManager()->attach('Zend\Mvc\Controller\AbstractController', 'dispatch', function($e) {
$e->getApplication()->getEventManager()->getSharedManager()->attach('Laminas\Mvc\Controller\AbstractController', 'dispatch', function($e) {
$controller = $e->getTarget();
$controllerClass = get_class($controller);
$moduleNamespace = substr($controllerClass, 0, strpos($controllerClass, '\\'));
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
EdpModuleLayouts
================
Version 1.0 Created by Evan Coury
Version 2.0 Created by Alexander Lampret

Introduction
------------

EdpModuleLayouts is a very simple ZF2 module (less than 20 lines) that simply
EdpModuleLayouts is a very simple Laminas module (less than 20 lines) that simply
allows you to specify alternative layouts to use for each module.

Usage
Expand All @@ -15,11 +15,11 @@ Using EdpModuleLayouts is very, very simple. In any module config or autoloaded
config file simply specify the following:

```php
array(
'module_layouts' => array(
[
'module_layouts' => [
'ModuleName' => 'layout/some-layout',
),
);
]
];
```

That's it!
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "evandotpro/edp-module-layouts",
"description": "EdpModuleLayouts is very simple ZF2 module for making module-specific layouts insanely easy.",
"name": "lampi87/edp-module-layouts",
"description": "EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.",
"type": "library",
"keywords": [
"zf2"
],
"homepage": "https://github.com/EvanDotPro/EdpModuleLayouts",
"homepage": "https://github.com/lampi87/EdpModuleLayouts",
"authors": [
{
"name": "Evan Coury",
"email": "[email protected]",
"homepage": "http://blog.evan.pro/"
},
{
"name": "Alexander Lampret",
"email": "[email protected]",
"homepage": "https://github.com/lampi87"
}
],
"require": {
Expand Down