Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
549 B

<?php
error_reporting(E_ALL);
function getGeneratedFiles($dir, &$results = array())
{
$files = scandir($dir);
foreach ($files as $key => $value) {
$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
if (!is_dir($path)) {
$results[] = $path;
} else if ($value != "." && $value != "..") {
getGeneratedFiles($path, $results);
}
}
return $results;
}
foreach (getGeneratedFiles("generated") as $filename)
{
if (!is_dir($filename)) {
include_once $filename;
}
}