@@ 122-129 (lines=8) @@ | ||
119 | */ |
|
120 | static public function assert_is_valid(array $definition) |
|
121 | { |
|
122 | if (empty($definition[self::PATTERN])) |
|
123 | { |
|
124 | throw new PatternNotDefined(\ICanBoogie\format("Pattern is not defined: !route", [ |
|
125 | ||
126 | 'route' => $definition |
|
127 | ||
128 | ])); |
|
129 | } |
|
130 | ||
131 | if (empty($definition[self::CONTROLLER]) && empty($definition[self::LOCATION])) |
|
132 | { |
|
@@ 131-138 (lines=8) @@ | ||
128 | ])); |
|
129 | } |
|
130 | ||
131 | if (empty($definition[self::CONTROLLER]) && empty($definition[self::LOCATION])) |
|
132 | { |
|
133 | throw new ControllerNotDefined(\ICanBoogie\format("Controller is not defined: !route", [ |
|
134 | ||
135 | 'route' => $definition |
|
136 | ||
137 | ])); |
|
138 | } |
|
139 | } |
|
140 | ||
141 | /** |