1 | <?php |
||
12 | class Application extends BaseApplication |
||
13 | { |
||
14 | /** |
||
15 | * {@InheritDoc} |
||
16 | */ |
||
17 | public function __construct(array $values = array()) |
||
23 | |||
24 | /** |
||
25 | * Use AuthorizationHeaderFix to add Authorization header in Symfony requests. |
||
26 | */ |
||
27 | private function fixAuthorizationHeader() |
||
42 | |||
43 | /** |
||
44 | * Add a new topic route. |
||
45 | * |
||
46 | * @param string $pattern |
||
47 | * @param callable $factory |
||
48 | * |
||
49 | * @return Controller |
||
50 | */ |
||
51 | public function topic($pattern, callable $factory) |
||
63 | |||
64 | /** |
||
65 | * Returns whether Push server is registered and enabled. |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function isPushEnabled() |
||
70 | { |
||
71 | return $this->offsetExists('sandstone.push') && $this['sandstone.push.enabled']; |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * Automatically forward rest API event to push server. |
||
76 | * |
||
77 | * @param string $eventName |
||
78 | * |
||
79 | * @return self |
||
80 | */ |
||
81 | public function forwardEventToPushServer($eventName) |
||
85 | |||
86 | /** |
||
87 | * Automatically forward rest API events to push server. |
||
88 | * |
||
89 | * @param string[] $eventsNames |
||
90 | * |
||
91 | * @return self |
||
92 | */ |
||
93 | public function forwardEventsToPushServer(array $eventsNames) |
||
109 | } |
||
110 |