Skip to content
Browse files

Add composer definition 6 autoload stuff

  • Loading branch information...
1 parent 4cb5008 commit 240bed61e92f711c6d1077e5c8c867999e5fdf8d mutrox committed
Showing with 66 additions and 0 deletions.
  1. +10 −0 autoload_classmap.php
  2. +17 −0 autoload_function.php
  3. +7 −0 autoload_register.php
  4. +32 −0 composer.json
View
10 autoload_classmap.php
@@ -0,0 +1,10 @@
+<?php
+/**
+ * User:dsamblas
+ * Date: 03/07/12
+ * Time: 12:00
+ */
+return array(
+ 'BjyAuthorize\Module' => __DIR__ . '/Module.php',
+
+);
View
17 autoload_function.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * User:dsamblas
+ * Date: 03/07/12
+ * Time: 12:00
+ */
+return function ($class) {
+ static $map;
+ if (!$map) {
+ $map = include __DIR__ . '/autoload_classmap.php';
+ }
+
+ if (!isset($map[$class])) {
+ return false;
+ }
+ return include $map[$class];
+};
View
7 autoload_register.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * User:dsamblas
+ * Date: 03/07/12
+ * Time: 12:00
+ */
+spl_autoload_register(include __DIR__ . '/autoload_function.php');
View
32 composer.json
@@ -0,0 +1,32 @@
+{
+ "name": "bjyoungblood/BjyAuthorize",
+ "description": "Clean Acl implementation to be as integrable and extendable as ZfcUser that will ease its usage with modules and applications. By default, it provides simple setup via config files or by using Zend\Db. This module also comes with out-of-the-box support for and integration with ZfcUser.",
+ "type": "library",
+ "keywords": [
+ "zf2",
+ "acl",
+ "zfc-user"
+ ],
+ "homepage": "https://github.com/bjyoungblood/BjyAuthorize",
+ "authors": [
+ {
+ "name": "Ben Youngblood",
+ "email": "bx.youngblood@gmail.com",
+ "homepage": "http://bjyoungblood.com/"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.3",
+ "zendframework/zendframework": "dev-master",
+ "zf-commons/zfc-base": "dev-master",
+ "zf-commons/zfc-user": "dev-master"
+ },
+ "autoload": {
+ "psr-0": {
+ "BjyAuthorize": "src/"
+ },
+ "classmap": [
+ "./"
+ ]
+ }
+}

0 comments on commit 240bed6

Please sign in to comment.
Something went wrong with that request. Please try again.