1 | <?php |
||
31 | class Entrypoint |
||
32 | { |
||
33 | protected $_puice = null; |
||
34 | |||
35 | /** |
||
36 | * will internally call the constructor of the implementing Class with |
||
37 | * predefined Dependencies |
||
38 | * |
||
39 | * @return an instance |
||
40 | */ |
||
41 | public static function create() |
||
56 | |||
57 | /** |
||
58 | * loadsConfigfile |
||
59 | * If the configPath == null nothing will be loaded |
||
60 | * |
||
61 | * @param $configPath path to the required Configfile |
||
62 | * @param Puice\Config &$config reference to the Configuration Object |
||
63 | * that should be filled |
||
64 | * @param Puice $puice Puice object, so its possible to create |
||
65 | * "singleton" Objects in the Config |
||
66 | */ |
||
67 | private static function loadConfig( |
||
74 | |||
75 | /** |
||
76 | * Hookfunction to enable the usageo of Costum Implementations of |
||
77 | * Puice\Config |
||
78 | * |
||
79 | * @return Puice\Config |
||
80 | */ |
||
81 | protected static function getConfigInstance() |
||
85 | |||
86 | /** |
||
87 | * Overwriteable Function to custom define the Root Application |
||
88 | * Config file for Puice |
||
89 | * |
||
90 | * @see features/puice.feature |
||
91 | * |
||
92 | * @return string Path of the root Application Puice Configfile |
||
93 | */ |
||
94 | protected static function getAppConf() |
||
98 | |||
99 | /** |
||
100 | * Overwriteable Function to custom define the EntryPoint |
||
101 | * Config file for Puice |
||
102 | * |
||
103 | * @see features/puice.feature |
||
104 | * |
||
105 | * @return string Path of the Entrypoint Puice Configfile |
||
106 | */ |
||
107 | protected static function getMyConf() |
||
117 | |||
118 | /** |
||
119 | * setter for Puice |
||
120 | * |
||
121 | * @param $factory |
||
122 | */ |
||
123 | public function setPuice(Puice $puice) |
||
127 | } |
||
128 |