mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
* Bazelfying conformance tests Adding infrastructure to "Bazelify" languages other than Java and C++ * Delete benchmarks for languages supported by other repositories * Bazelfying benchmark tests * Bazelfying python Use upb's system python rule instead of branching tensorflow * Bazelfying Ruby * Bazelfying C# * Bazelfying Objective-c * Bazelfying Kokoro mac builds * Bazelfying Kokoro linux builds * Deleting all deprecated files from autotools cleanup This boils down to Makefile.am and tests.sh and all of their remaining references * Cleanup after PR reorganizing - Enable 32 bit tests - Move conformance tests back - Use select statements to select alternate runtimes - Add internal prefixes to proto library macros * Updating READMEs to use bazel instead of autotools. * Bazelfying Kokoro release builds * First round of review fixes * Second round of review fixes * Third round of review fixes * Filtering out conformance tests from Bazel on Windows (b/241484899) * Add version metadata that was previously scraped from configure.ac * fixing typo from previous fix * Adding ruby version tests * Bumping pinned upb version, and adding tests to python CI
21 lines
749 B
PHP
21 lines
749 B
PHP
<?php
|
|
|
|
define("GOOGLE_INTERNAL_NAMESPACE", "Google\\Protobuf\\Internal\\");
|
|
define("GOOGLE_NAMESPACE", "Google\\Protobuf\\");
|
|
define("GOOGLE_GPBMETADATA_NAMESPACE", "GPBMetadata\\Google\\Protobuf\\");
|
|
|
|
function protobuf_autoloader_impl($class, $prefix) {
|
|
$length = strlen($prefix);
|
|
if ((substr($class, 0, $length) === $prefix)) {
|
|
$path = 'php/src/' . implode('/', array_map('ucwords', explode('\\', $class))) . '.php';
|
|
include_once $path;
|
|
}
|
|
}
|
|
|
|
function protobuf_autoloader($class) {
|
|
protobuf_autoloader_impl($class, GOOGLE_INTERNAL_NAMESPACE);
|
|
protobuf_autoloader_impl($class, GOOGLE_NAMESPACE);
|
|
protobuf_autoloader_impl($class, GOOGLE_GPBMETADATA_NAMESPACE);
|
|
}
|
|
|
|
spl_autoload_register('protobuf_autoloader');
|