src/. No Composer at runtime. * * @package LaserLeadForms */ defined( 'ABSPATH' ) || exit; spl_autoload_register( static function ( $class ) { $prefix = 'LaserLeadForms\\'; if ( 0 !== strpos( $class, $prefix ) ) { return; } $relative = substr( $class, strlen( $prefix ) ); // Reject anything that is not a plain namespaced identifier. if ( ! preg_match( '/^[A-Za-z0-9_\\\\]+$/', $relative ) ) { return; } $file = __DIR__ . '/src/' . str_replace( '\\', '/', $relative ) . '.php'; if ( is_readable( $file ) ) { require_once $file; } } );