Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
composer.lock
build/
.coveralls.yml
/.idea
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Illuminate\Support\ServiceProvider;
use NilPortugues\Laravel5\JsonApi\Providers\Laravel51Provider;
use NilPortugues\Laravel5\JsonApi\Providers\Laravel52Provider;
use NilPortugues\Laravel5\JsonApi\Providers\Laravel53Provider;

class Laravel5JsonApiServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -56,6 +57,9 @@ public function register()
case false !== strpos($version, '5.2.'):
$provider = new Laravel52Provider();
break;
case false !== strpos($version, '5.3.'):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

$provider = new Laravel53Provider();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

break;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces must be used to indent lines; tabs are not allowed

default:
throw new \RuntimeException(
sprintf('Laravel version %s is not supported. Please use the 5.1 for the time being', $version)
Expand Down
24 changes: 24 additions & 0 deletions src/NilPortugues/Laravel5/JsonApi/Providers/Laravel53Provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 4/01/16
* Time: 0:06.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace NilPortugues\Laravel5\JsonApi\Providers;

use Illuminate\Container\Container;
use Illuminate\Routing\RouteCollection;
use Illuminate\Routing\UrlGenerator;
use ReflectionClass;

/**
* Class Laravel53Provider.
*/
class Laravel53Provider extends Laravel52Provider
{

}