Skip to content

Commit

Permalink
Merge pull request #38 from divineniiquaye/prefix-freedom
Browse files Browse the repository at this point in the history
Closes issue #37
  • Loading branch information
divineniiquaye committed Nov 3, 2022
2 parents b2a4ef3 + c7c17d6 commit f78c719
Show file tree
Hide file tree
Showing 57 changed files with 220 additions and 314 deletions.
8 changes: 3 additions & 5 deletions src/Annotation/Listener.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Annotation/Route.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/InvalidControllerException.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/MethodNotAllowedException.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/RouteNotFoundException.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/UriHandlerException.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Exceptions/UrlGenerationException.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Handlers/CallbackHandler.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Handlers/FileHandler.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Handlers/ResourceHandler.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Handlers/RouteHandler.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
4 changes: 2 additions & 2 deletions src/Handlers/RouteInvoker.php
Expand Up @@ -3,10 +3,10 @@
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/ExceptionInterface.php
Expand Up @@ -3,10 +3,10 @@
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/RouteCompilerInterface.php
Expand Up @@ -3,10 +3,10 @@
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/RouteMatcherInterface.php
Expand Up @@ -3,10 +3,10 @@
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/UrlGeneratorInterface.php
Expand Up @@ -3,10 +3,10 @@
/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Middlewares/PathMiddleware.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Middlewares/UriRedirectMiddleware.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
12 changes: 5 additions & 7 deletions src/RouteCollection.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down Expand Up @@ -187,9 +185,9 @@ public function add(string $pattern, array $methods = Router::DEFAULT_METHODS, m
/**
* Mounts controllers under the given route prefix.
*
* @param null|string $name The route group prefixed name
* @param null|string $name The route group prefixed name
* @param null|callable|RouteCollection $collection A RouteCollection instance or a callable for defining routes
* @param bool $return If true returns a new collection instance else returns $this
* @param bool $return If true returns a new collection instance else returns $this
*/
public function group(string $name = null, callable|self $collection = null, bool $return = false): self
{
Expand Down
9 changes: 3 additions & 6 deletions src/RouteCompiler.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand All @@ -18,7 +16,6 @@
namespace Flight\Routing;

use Flight\Routing\Exceptions\{UriHandlerException, UrlGenerationException};
use Flight\Routing\RouteUri;
use Flight\Routing\Interfaces\RouteCompilerInterface;

/**
Expand Down
8 changes: 3 additions & 5 deletions src/RouteUri.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down
8 changes: 3 additions & 5 deletions src/Router.php
@@ -1,14 +1,12 @@
<?php

declare(strict_types=1);
<?php declare(strict_types=1);

/*
* This file is part of Flight Routing.
*
* PHP version 7.4 and above required
* PHP version 8.0 and above required
*
* @author Divine Niiquaye Ibok <divineibok@gmail.com>
* @copyright 2019 Biurad Group (https://biurad.com/)
* @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
* @license https://opensource.org/licenses/BSD-3-Clause License
*
* For the full copyright and license information, please view the LICENSE
Expand Down

0 comments on commit f78c719

Please sign in to comment.