/usr/share/php/Analog.php is in php-analog 1.0.7-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?php
require_once 'Psr/Log/autoload.php';
/**
* Register a very simple autoloader for the pre-built handlers
* based on the current working directory.
*/
spl_autoload_register (function ($class) {
$file = str_replace ('\\', DIRECTORY_SEPARATOR, ltrim ($class, '\\')) . '.php';
if (file_exists (__DIR__ . DIRECTORY_SEPARATOR . $file)) {
require_once $file;
return true;
}
return false;
});
/**
* We simply alias extend the main class so that Analog is
* available as a global class. This saves us adding
* `use \Analog\Analog` at the top of every file,
* or worse, typeing `\Analog\Analog::log()` everywhere.
*/
class_alias ('\Analog\Analog', 'Analog');
|