Permalink
Browse files

Add composer.json

  • Loading branch information...
EvanDotPro committed Sep 14, 2012
1 parent 1c29703 commit b1f4c18121c1b03d589eab188398a38b132948b2
Showing with 26 additions and 3 deletions.
  1. +1 −2 Module.php
  2. +1 −1 README.md
  3. +24 −0 composer.json
View
@@ -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
@@ -1,4 +1,4 @@
-EdpModuleLayout
+EdpModuleLayouts
================
Version 0.0.1 Created by Evan Coury
View
@@ -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"
+ ]
+ }
+}

0 comments on commit b1f4c18

Please sign in to comment.