So, I have a simple PCR0 autoloader in my bootstrap.php that should load any PCR0 compatible library class from the vendors directory ...
spl_autoload_register( function( $classname ) { $path = preg_match( '/\\\\/', $classname ) ? str_replace( '\\', DIRECTORY_SEPARATOR, $classname ) : str_replace( '_', DIRECTORY_SEPARATOR, $classname ); $file = VENDORS_PATH . DIRECTORY_SEPARATOR . $path . '.php'; if ( file_exists( $file ) ) { require_once( $file ); } });
I am not sure if I understand why the composer creates automatic download files in the suppliers directory (namely the composer and autoload.php file)?
Can I stop the linker from creating these startup files? or am I missing something? I donβt think I need them?
Ryan eckert
source share