1 | <?php |
||
30 | class VarsServiceProvider implements ServiceProviderInterface |
||
31 | { |
||
32 | /** |
||
33 | * The entity to use Vars with |
||
34 | * |
||
35 | * @var null |
||
36 | */ |
||
37 | private $entity; |
||
38 | |||
39 | /** |
||
40 | * The available option keys |
||
41 | * |
||
42 | * @var array |
||
43 | */ |
||
44 | private $option_keys = array( |
||
45 | 'cache', |
||
46 | 'cache_path', |
||
47 | 'cache_expire', |
||
48 | 'loaders', |
||
49 | 'variables' |
||
50 | ); |
||
51 | |||
52 | /** |
||
53 | * The service provider constructor sets the entity to use with vars |
||
54 | * |
||
55 | * @param mixed $entity The entity |
||
56 | */ |
||
57 | 3 | public function __construct($entity = null) |
|
61 | |||
62 | /** |
||
63 | * Registers the service provider, sets the user defined options and returns the vars instance |
||
64 | * |
||
65 | * @param \Silex\Application $app The silex app |
||
66 | */ |
||
67 | public function register(Application $app) |
||
93 | |||
94 | /** |
||
95 | * The silex service provider boot function |
||
96 | * |
||
97 | * @param \Silex\Application $app The silex app |
||
98 | * |
||
99 | * @codeCoverageIgnore |
||
100 | */ |
||
101 | public function boot(Application $app) |
||
104 | } |
||
105 |