Skip to content

Commit

Permalink
Fixed autoloader (Close #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jubianchi committed Feb 21, 2015
1 parent a7c7a33 commit 75ee8a6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .atoum.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoloader.php';

use mageekguy\atoum\visibility;

Expand Down
7 changes: 6 additions & 1 deletion .bootstrap.atoum.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<?php

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
if (is_file($vendorAutoloader = __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'))
{
require_once $vendorAutoloader;
}

require_once __DIR__ . DIRECTORY_SEPARATOR . 'autoloader.php';
6 changes: 3 additions & 3 deletions autoloader.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace mageekguy\atoum\jsonSchema;
namespace mageekguy\atoum\visibility;

use mageekguy\atoum;

atoum\autoloader::get()
->addNamespaceAlias('atoum\jsonSchema', __NAMESPACE__)
->addNamespaceAlias('atoum\visibility', __NAMESPACE__)
->addDirectory(__NAMESPACE__, __DIR__ . DIRECTORY_SEPARATOR . 'classes');
;
;
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require-dev": {
"atoum/atoum": "~1.0"
"atoum/atoum": "<3.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 75ee8a6

Please sign in to comment.