Completed
Pull Request — master (#51)
by Thierry
01:27
created

Manager::getPluginManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Container.php - Trait for Utils classes
5
 *
6
 * Make functions of the utils classes available to Jaxon classes.
7
 *
8
 * @package jaxon-core
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2016 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-core
13
 */
14
15
namespace Jaxon\Features;
16
17
trait Manager
18
{
19
    /**
20
     * Get the plugin manager
21
     *
22
     * @return Jaxon\Plugin\Manager
23
     */
24
    public function getPluginManager()
25
    {
26
        return jaxon()->di()->getPluginManager();
27
    }
28
29
    /**
30
     * Get the response manager
31
     *
32
     * @return Jaxon\Response\Manager
33
     */
34
    public function getResponseManager()
35
    {
36
        return jaxon()->di()->getResponseManager();
37
    }
38
}
39