Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add composer.json

  • Loading branch information...
commit b1f4c18121c1b03d589eab188398a38b132948b2 1 parent 1c29703
@EvanDotPro authored
Showing with 26 additions and 3 deletions.
  1. +1 −2  Module.php
  2. +1 −1  README.md
  3. +24 −0 composer.json
View
3  Module.php
@@ -6,8 +6,7 @@ class Module
public function onBootstrap($e)
{
$e->getApplication()->getEventManager()->getSharedManager()->attach('Zend\Mvc\Controller\AbstractActionController', 'dispatch', function($e) {
- $controller = $e->getTarget();
- $controllerClass = get_class($controller);
+ $controllerClass = get_class($e->getTarget());
$moduleNamespace = substr($controllerClass, 0, strpos($controllerClass, '\\'));
$config = $e->getApplication()->getServiceManager()->get('config');
if (isset($config['module_layouts'][$moduleNamespace])) {
View
2  README.md
@@ -1,4 +1,4 @@
-EdpModuleLayout
+EdpModuleLayouts
================
Version 0.0.1 Created by Evan Coury
View
24 composer.json
@@ -0,0 +1,24 @@
+{
+ "name": "evandotpro/edp-module-layouts",
+ "description": "EdpModuleLayouts is very simple ZF2 module for making module-specific layouts insanely easy.",
+ "type": "library",
+ "keywords": [
+ "zf2"
+ ],
+ "homepage": "https://github.com/EvanDotPro/EdpModuleLayouts",
+ "authors": [
+ {
+ "name": "Evan Coury",
+ "email": "me@evancoury.com",
+ "homepage": "http://blog.evan.pro/"
+ }
+ ],
+ "require": {
+ "php": ">=5.3"
+ },
+ "autoload": {
+ "classmap": [
+ "./Module.php"
+ ]
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.