1 | <?php |
||
12 | class Application extends BaseApplication |
||
13 | { |
||
14 | /** |
||
15 | * Events lists marked as to forward before application boot. |
||
16 | * Needs to be forwarded once application booted. |
||
17 | * |
||
18 | * @var string[][] |
||
19 | */ |
||
20 | private $events; |
||
21 | |||
22 | /** |
||
23 | * {@InheritDoc} |
||
24 | */ |
||
25 | public function __construct(array $values = array()) |
||
33 | |||
34 | /** |
||
35 | * Use AuthorizationHeaderFix to add Authorization header in Symfony requests. |
||
36 | */ |
||
37 | private function fixAuthorizationHeader() |
||
52 | |||
53 | /** |
||
54 | * Add a new topic route. |
||
55 | * |
||
56 | * @param string $pattern |
||
57 | * @param callable $factory |
||
58 | * |
||
59 | * @return Controller |
||
60 | */ |
||
61 | public function topic($pattern, callable $factory) |
||
73 | |||
74 | /** |
||
75 | * Returns whether Push server is registered and enabled. |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function isPushEnabled() |
||
83 | |||
84 | /** |
||
85 | * Automatically forward rest API event to push server. |
||
86 | * |
||
87 | * @param string $eventName |
||
88 | * |
||
89 | * @return self |
||
90 | */ |
||
91 | public function forwardEventToPushServer($eventName) |
||
95 | |||
96 | /** |
||
97 | * Automatically forward rest API events to push server. |
||
98 | * |
||
99 | * @param string[] $eventsNames |
||
100 | * |
||
101 | * @return self |
||
102 | */ |
||
103 | public function forwardEventsToPushServer(array $eventsNames) |
||
121 | |||
122 | /** |
||
123 | * {@InheritDoc} |
||
124 | * |
||
125 | * Forward events marked as to be forwarded before application boot. |
||
126 | * |
||
127 | * Allow to use forwardEventsToPushServer in register |
||
128 | * instead of forcing user to forward event only at boot. |
||
129 | */ |
||
130 | public function boot() |
||
144 | } |
||
145 |