From 8a8b123d3322d24d77114dfa767a5eafbe9ff24b Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 14 Sep 2012 12:47:49 -0400 Subject: [PATCH] Autoloading support for Composer --- .gitignore | 2 ++ composer.json | 37 ++++++++++++++++++++----------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 4d6ef8d2..9fcd3c0e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ docs/doxygen* *.htmlt.ini *.patch /*.php +vendor +composer.lock diff --git a/composer.json b/composer.json index bc016070..9ac6ec2e 100644 --- a/composer.json +++ b/composer.json @@ -1,18 +1,21 @@ { - "name": "ezyang/htmlpurifier", - "description": "Standards compliant HTML filter written in PHP", - "type": "library", - "keywords": [ "html"], - "homepage": "http://htmlpurifier.org/", - "license": "LGPL", - "authors": [ - { - "name": "Edward Z. Yang", - "email": "admin@htmlpurifier.org", - "homepage": "http://ezyang.com" - } - ], - "require": { - "php": ">=5.2" - } -} \ No newline at end of file + "name": "ezyang/htmlpurifier", + "description": "Standards compliant HTML filter written in PHP", + "type": "library", + "keywords": ["html"], + "homepage": "http://htmlpurifier.org/", + "license": "LGPL", + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "require": { + "php": ">=5.2" + }, + "autoload": { + "classmap": ["library/"] + } +}