Skip to content

Commit

Permalink
Api: Remove deprecated argument for run().
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jul 15, 2021
1 parent 31f9064 commit 5ff71cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public function getHtmlInit(string $route): string
* 3. Loop all available data and count last modification date
* 4. Render welcome information header + return minified haystack
*/
public function run(string $path): void
public function run(): void
{
if (preg_match('/^assets\/web-loader\/(.+?)(?:\?v=[0-9a-f]{6})?$/', $path, $parser)) { // 1.
if (preg_match('/^assets\/web-loader\/(.+?)(?:\?v=[0-9a-f]{6})?$/', Url::get()->getRelativeUrl(), $parser)) { // 1.
if (preg_match(
'/^global-(?<module>[a-zA-Z0-9]+)\.(?<format>[a-zA-Z0-9]+)$/',
$parser[1],
Expand Down

0 comments on commit 5ff71cf

Please sign in to comment.