public function loadPhpFiles($dir)
    {
        $files = Finder::create()->files()->name('*.php')->in($dir);
        foreach ($files as $file) {
            $this->loadFile($file->getRealpath());
        }

    }
public function loadPhpFiles($dir)
    {
        $files = Finder::create()->files()->name('*.php')->in($dir);
        foreach ($files as $file) {
            $this->loadFile($file->getRealpath());
        }

    }
public function loadPhpFiles ( $ dir ) { $ files = Finder :: create ( ) -> files ( ) -> name ( '*.php' ) -> in ( $ dir ) ; foreach ( $ files as $ file ) { $ this -> loadFile ( $ file -> getRealpath ( ) ) ; } }
Scans a directory provided and includes all PHP files from it.
All files will be parsed and aspects will be added.

@param $dir
Scans a directory provided and includes all PHP files from it . All files will be parsed and aspects will be added .