| author | cavaliet |
| Tue, 15 Nov 2011 12:27:02 +0100 | |
| changeset 31 | f457dd0e7a1e |
| parent 18 | c85b9d1ddf19 |
| permissions | -rw-r--r-- |
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
/* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
* This file is part of Mandango. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
* (c) Pablo Díez <pablodip@gmail.com> |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
* This source file is subject to the MIT license that is bundled |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
* with this source code in the file LICENSE. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
namespace Mandango\Mondator; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
/** |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
* Extension is the base class for extensions. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
* @author Pablo Díez <pablodip@gmail.com> |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
* @api |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
abstract class Extension extends ClassExtension |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
{ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
/** |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
* Pre global process of the extension. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
26 |
* @param \ArrayObject $configClasses The config classes. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
27 |
* @param Mandango\Mondator\Container $container The global container. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
28 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
* @api |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
30 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
public function preGlobalProcess(\ArrayObject $configClasses, Container $container) |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
{ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
$this->configClasses = $configClasses; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
34 |
$this->definitions = $container; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
35 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
36 |
$this->doPreGlobalProcess(); |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
37 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
38 |
$this->configClasses = null; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
39 |
$this->definitions = null; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
40 |
} |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
41 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
42 |
/** |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
43 |
* Do the pre global process. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
44 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
45 |
* @api |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
46 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
47 |
protected function doPreGlobalProcess() |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
48 |
{ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
49 |
} |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
50 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
51 |
/** |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
52 |
* Post global process of the extension. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
53 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
54 |
* @param \ArrayObject $configClasses The config classes. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
55 |
* @param Mandango\Mondator\Container $container The global container. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
56 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
57 |
* @api |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
58 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
59 |
public function postGlobalProcess(\ArrayObject $configClasses, Container $container) |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
60 |
{ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
61 |
$this->configClasses = $configClasses; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
62 |
$this->definitions = $container; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
63 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
64 |
$this->doPostGlobalProcess(); |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
65 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
66 |
$this->configClasses = null; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
67 |
$this->definitions = null; |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
68 |
} |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
69 |
|
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
70 |
/** |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
71 |
* Do the post global process. |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
72 |
* |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
73 |
* @api |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
74 |
*/ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
75 |
protected function doPostGlobalProcess() |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
76 |
{ |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
77 |
} |
|
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
78 |
} |