1: <?php
2:
3: namespace Project\App;
4:
5: /**
6: * App bundle builder
7: */
8: class Builder extends \PHPixie\DefaultBundle\Builder
9: {
10: /**
11: * Build Processor for HTTP requests
12: * @return HTTPProcessor
13: */
14: protected function buildHttpProcessor()
15: {
16: return new HTTPProcessor($this);
17: }
18:
19: /**
20: * Build ORM Wrappers
21: * @return ORMWrappers
22: */
23: protected function buildORMWrappers()
24: {
25: return new ORMWrappers($this);
26: }
27:
28: /**
29: * Get bundle root directory
30: * @return string
31: */
32: protected function getRootDirectory()
33: {
34: return realpath(__DIR__.'/../../../');
35: }
36:
37: /**
38: * Get bundle name
39: * @return string
40: */
41: public function bundleName()
42: {
43: return 'app';
44: }
45: }