1: <?php
2:
3: namespace PHPixie\BundleFramework;
4:
5: /**
6: * Framework components
7: */
8: class Components extends \PHPixie\Framework\Components
9: {
10: /**
11: * @var Builder
12: */
13: protected $builder;
14:
15: /**
16: * Bundles component
17: * @return \PHPixie\Bundles
18: */
19: public function bundles()
20: {
21: return $this->instance('bundles');
22: }
23:
24: /**
25: * @return \PHPixie\Bundles
26: */
27: protected function buildBundles()
28: {
29: $configuration = $this->builder->configuration();
30:
31: return new \PHPixie\Bundles(
32: $this->builder->bundles(),
33: $configuration->bundlesConfig()
34: );
35: }
36: }