Permalink
Browse files

Remove examples/loader and replace it with composer autoloader

  • Loading branch information...
1 parent d1cfa9e commit 26bd6d82f41b22c5900ee477ee745f4bcc82b043 @igorw igorw committed Aug 23, 2012
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
@@ -35,9 +35,9 @@
$con->subscribe("/queue/test");
$msg = $con->readFrame();
-// extract
+// extract
if ( $msg != null) {
- echo "Received message: ";
+ echo "Received message: ";
print_r($msg->body . "\n");
// mark the message as received in the queue
$con->ack($msg);
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
View
@@ -1,9 +0,0 @@
-<?php
-require_once __DIR__.'/../main/FuseSource/Stomp/ExceptionInterface.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Exception/StompException.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Stomp.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Frame.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Message.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Message/Bytes.php';
-require_once __DIR__.'/../main/FuseSource/Stomp/Message/Map.php';
-
View
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
@@ -46,7 +46,7 @@
}
echo "}\n";
// they will be available for consumers after commit
-$con->commit("tx2");
+$con->commit("tx2");
// try to receive some messages
$con->begin("tx3");
@@ -1,5 +1,5 @@
<?php
-require_once __DIR__.'/loader.php';
+require __DIR__.'/../vendor/autoload.php';
/**
*
* Copyright (C) 2009 Progress Software, Inc. All rights reserved.
@@ -37,9 +37,9 @@
$con->subscribe("/queue/test", array('transformation' => 'jms-map-json'));
$msg = $con->readFrame();
-// extract
+// extract
if ( $msg != null) {
- echo "Received array: ";
+ echo "Received array: ";
print_r($msg->map);
// mark the message as received in the queue
$con->ack($msg);

0 comments on commit 26bd6d8

Please sign in to comment.