|
@@ -30,8 +30,9 @@ |
|
30
|
30
|
spl_autoload_register( [ $this, 'autoload' ] ); |
|
31
|
31
|
} |
|
32
|
32
|
|
|
33
|
33
|
public function autoload( $class ): void { |
|
34
|
+ |
|
34
|
35
|
if ( strpos( $class, $this->namespace ) === 0 ) { |
|
35
|
36
|
$file = $this->get_file_path( $class ); |
|
36
|
37
|
|
|
37
|
38
|
if ( $file && file_exists( $file ) ) { |