1: <?php
2:
3: namespace PHPixie;
4:
5: class Bundles
6: {
7: protected $builder;
8: protected $configData;
9:
10: public function __construct($bundleRegistry, $configData)
11: {
12: $this->builder = $this->buildBuilder(
13: $bundleRegistry,
14: $configData
15: );
16: }
17:
18: public function builder()
19: {
20: return $this->builder;
21: }
22:
23: public function registry()
24: {
25: return $this->builder->registry();
26: }
27:
28: public function bundles()
29: {
30: return $this->builder->registry()->bundles();
31: }
32:
33: public function get($name)
34: {
35: return $this->builder->registry()->get($name);
36: }
37:
38: public function config($name)
39: {
40: return $this->builder->config($name);
41: }
42:
43: public function httpProcessors()
44: {
45: return $this->builder->httpProcessors();
46: }
47:
48: public function templateLocators()
49: {
50: return $this->builder->templateLocators();
51: }
52:
53: public function routeResolvers()
54: {
55: return $this->builder->routeResolvers();
56: }
57:
58: public function orm()
59: {
60: return $this->builder->orm();
61: }
62:
63: public function auth()
64: {
65: return $this->builder->auth();
66: }
67:
68: protected function buildBuilder($slice, $configData)
69: {
70: return new Bundles\Builder($slice, $configData);
71: }
72: }