Test Failed
Push — master ( 9fdf3e...42dea4 )
by Mikael
01:22
created

CDIFactoryDocumentation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace Anax\DI;
4
5
/**
6
 * Extended factory for Anax documentation.
7
 *
8
 */
9
class CDIFactoryDocumentation extends CDIFactoryDefault
10
{
11
   /**
12
     * Construct.
13
     *
14
     */
15
    public function __construct()
16
    {
17
        parent::__construct();
18
19
        $this->set('documentation', function () {
20
            $fc = new \Anax\Content\CFileContent();
21
            $fc->setBasePath(ANAX_INSTALL_PATH . 'docs/documentation');
22
            return $fc;
23
        });
24
25
        $this->theme->setVariable('style', "article {max-width: 650px;}");
26
        $this->theme->setBaseTitle(" - Anax documentation");
27
    }
28
}
29