Skip to content

Commit e904db3

Browse files
committed
Removed exisisting directory restriction from autoloader when registering namespaces.
1 parent aacdfa7 commit e904db3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Darya/Common/Autoloader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ public function register() {
8282
public function registerNamespaces(array $namespaces = array()) {
8383
foreach ($namespaces as $ns => $paths) {
8484
foreach ((array) $paths as $path) {
85-
if (file_exists($this->basePath . "/$path") || file_exists($path)) {
86-
$this->registeredNamespaces[] = array($ns, $path);
87-
}
85+
$this->registeredNamespaces[] = array($ns, $path);
8886
}
8987
}
9088
}

0 commit comments

Comments
 (0)