@@ -95,7 +95,7 @@ |
||
95 | 95 | protected function checkExistence(string $url, string $protocol): Router |
96 | 96 | { |
97 | 97 | foreach($this->routers as $key => $value){ |
98 | - if( md5($this->prefix . $value['url'] . $value['protocol'] ) === md5( $url . $protocol ) ){ |
|
98 | + if( md5($this->prefix . $value['url'] . $value['protocol'] ) === md5( $url . $protocol ) ){ |
|
99 | 99 | throw new Exception("There is already a route with the url {$url} and with the {$protocol} protocol configured."); |
100 | 100 | } |
101 | 101 | } |