From f963dcf96893f66e4f541595e2cdc06fe616a026 Mon Sep 17 00:00:00 2001 From: Fabrice PICCINALI Date: Tue, 17 Nov 2015 15:21:04 +0100 Subject: [PATCH 1/2] example with autoload cwsdump et cwsdebug --- example.composer.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/example.composer.php b/example.composer.php index b30388d..492f270 100644 --- a/example.composer.php +++ b/example.composer.php @@ -2,19 +2,17 @@ // sample of cwsMailBounceHandler when installed with composer // for now, you still need to manually install CwsDebug et CwsDump -// Download CwsDump at https://github.com/crazy-max/CwsDump -require_once '../CwsDump/class.cws.dump.php'; +// load composer autoloader +require_once dirname(__FILE__).'/../../autoload.php'; + +// see CwsDump at https://github.com/crazy-max/CwsDump $cwsDump = new CwsDump(); -// Download CwsDebug at https://github.com/crazy-max/CwsDebug -require_once '../CwsDebug/class.cws.debug.php'; +// see CwsDebug at https://github.com/crazy-max/CwsDebug $cwsDebug = new CwsDebug($cwsDump); $cwsDebug->setDebugVerbose(); $cwsDebug->setEchoMode(); -// load composer autoloader -require_once dirname(__FILE__).'/../../autoload.php'; - $cwsMbh = new Cws\MailBounceHandler\Handler($cwsDebug); // process mode From cdb81be52493f651007bea19b57607336c41e121 Mon Sep 17 00:00:00 2001 From: Fabrice PICCINALI Date: Tue, 17 Nov 2015 15:29:45 +0100 Subject: [PATCH 2/2] ... --- composer.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 776e362..08b10d5 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,8 @@ } ], "require": { + "crazy-max/cws-debug": "dev-master", + "crazy-max/cws-dump": "dev-master" }, "require-dev": { },