Passed
Push — master ( f371aa...d7ec00 )
by Julien
19:30
created

Loader::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Autoload;
13
14
use Phalcon\Autoload\Exception;
15
16
/**
17
 * Class Loader
18
 *
19
 * This class extends the \Phalcon\Autoload\Loader class and disable file checking callback for better performance.
20
 *
21
 * @throws Exception Throws an exception if initialization fails.
22
 */
23
class Loader extends \Phalcon\Autoload\Loader
24
{
25
    /**
26
     * @throws Exception
27
     */
28
    public function __construct(bool $isDebug = false)
29
    {
30
        parent::__construct($isDebug);
31
        
32
        // Do not check file existence.
33
        $this->setFileCheckingCallback(null);
34
    }
35
}
36