Skip to content
Browse files

Added the support of composer

  • Loading branch information...
1 parent e96f5f1 commit 745730cd2a5e06fc21bd92f2e84e8cf46e42d505 @vatson vatson committed Nov 21, 2011
Showing with 39 additions and 22 deletions.
  1. +9 −1 .gitignore
  2. +0 −6 .gitmodules
  3. +2 −1 .travis.yml
  4. +1 −12 autoload.php
  5. +27 −0 composer.json
  6. +0 −1 vendor/Symfony/Component/ClassLoader
  7. +0 −1 vendor/Symfony/Component/Serializer
View
10 .gitignore
@@ -32,4 +32,12 @@ Icon?
Thumbs.db
# Folder config file
-Desktop.ini
+Desktop.ini
+
+#### Composer ####
+
+composer.lock
+composer.phar
+
+#### Vendors ####
+vendor/
View
6 .gitmodules
@@ -1,6 +0,0 @@
-[submodule "vendor/Symfony/Component/ClassLoader"]
- path = vendor/Symfony/Component/ClassLoader
- url = git://github.com/symfony/ClassLoader.git
-[submodule "vendor/Symfony/Component/Serializer"]
- path = vendor/Symfony/Component/Serializer
- url = git://github.com/symfony/Serializer.git
View
3 .travis.yml
@@ -5,7 +5,8 @@ php:
- 5.4
before_script:
- - git submodule update --init
+ - wget http://getcomposer.org/composer.phar
+ - php composer.phar install
branches:
only:
View
13 autoload.php
@@ -1,14 +1,3 @@
<?php
-require_once __DIR__ . '/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php';
-
-use Symfony\Component\ClassLoader\UniversalClassLoader;
-
-$loader = new UniversalClassLoader();
-$loader->registerNamespaces(array(
- 'BadaBoom\Tests' => __DIR__.'/tests',
- 'BadaBoom' => __DIR__.'/src',
- 'Symfony' => __DIR__.'/vendor',
-));
-
-$loader->register();
+require_once __DIR__ . '/vendor/.composer/autoload.php';
View
27 composer.json
@@ -0,0 +1,27 @@
+{
+ "name": "fp/BadaBoom",
+ "type": "library",
+ "description": "Wise error catcher",
+ "keywords": [],
+ "homepage": "http://github.com/formapro/BadaBoom",
+ "version": "0.0.1-DEV",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Vadim Tyukov",
+ "email": "brainreflex@gmail.com"
+ },
+ {
+ "name": "Maksim Kotlyar",
+ "email": "kotlyar.maksim@gmail.com"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.2",
+ "symfony/class-loader": "2.0.*",
+ "symfony/serializer": ">=2.0.6"
+ },
+ "autoload": {
+ "psr-0": { "BadaBoom\\Tests": "tests/", "BadaBoom": "src/" }
+ }
+}
1 vendor/Symfony/Component/ClassLoader
@@ -1 +0,0 @@
-Subproject commit 1685e153f1f7b765066f906b31e8be5f024e5415
1 vendor/Symfony/Component/Serializer
@@ -1 +0,0 @@
-Subproject commit 2c38a5a83790f5c6db7d61533417561475bef9a6

0 comments on commit 745730c

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