This file is indexed.

/usr/share/doc/php-horde-injector/examples/annotatedsetters.php is in php-horde-injector 2.0.2-1.

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
 * Demonstrates how to use the annotated setters binder with Horde_Injector.
 *
 * PHP version 5
 *
 * @category Horde
 * @package  Injector
 * @author   Chuck Hagenbuch <chuck@horde.org>
 * @license  http://www.horde.org/licenses/bsd BSD
 * @link     http://pear.horde.org/index.php?package=Injector
 */

require 'Horde/Autoloader.php';

class Worker
{
    public $helper;

    /**
     * @inject
     */
    public function setHelper(Helper $h)
    {
        $this->helper = $h;
    }
}

class Helper
{
    public function __toString()
    {
        return 'helper';
    }
}

$a = new Horde_Injector(new Horde_Injector_TopLevel());
$b = $a->getInstance('Worker');
echo "$b->helper\n";