Permalink
Browse files

Loader was missing namespace

  • Loading branch information...
1 parent 0f11cd4 commit 229b08baf2fa82112cec11b32c37924748b9a3f5 @timoh6 committed Jul 31, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 README.markdown
  2. +1 −0 library/TCrypto/Loader.php
  3. +3 −2 tests/bootstrap.php
View
@@ -102,7 +102,7 @@ Examples
``` php
<?php
require '/path/to/library/TCrypto/Loader.php';
-$loader = new Loader();
+$loader = new TCrypto\Loader();
$loader->register();
// Or more simply, use Composer http://getcomposer.org/download/
// Add something like "tcrypto/tcrypto": "*" to your composer.json:
@@ -1,4 +1,5 @@
<?php
+namespace TCrypto;
/**
* SplClassLoader implementation that implements the technical interoperability
View
@@ -2,6 +2,7 @@
chdir(__DIR__);
error_reporting(E_ALL | E_STRICT);
+// Load TCrypto files
require_once '../library/TCrypto/Loader.php';
-$loader = new Loader('TCrypto');
-$loader->register();
+$loader = new TCrypto\Loader('TCrypto');
+$loader->register();

0 comments on commit 229b08b

Please sign in to comment.