Skip to content

Commit

Permalink
Rename some middleware to match Laravel equivalent.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 25, 2015
1 parent 5c2a60b commit a97b396
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -2,7 +2,7 @@

use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class IsRegistrable extends Can
class CanRegisterUser extends Can
{
/**
* Check authorization.
Expand Down
@@ -1,6 +1,6 @@
<?php namespace Orchestra\Foundation\Http\Middleware;

class IsGuest extends Can
class RedirectIfAuthenticated extends Can
{
/**
* Check authorization.
Expand Down
@@ -1,6 +1,6 @@
<?php namespace Orchestra\Foundation\Http\Middleware;

class IsInstalled extends Can
class RedirectIfInstalled extends Can
{
/**
* Check authorization.
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/FoundationServiceProvider.php
Expand Up @@ -72,11 +72,11 @@ class FoundationServiceProvider extends ServiceProvider
protected $routeMiddleware = [
'orchestra.auth' => 'Orchestra\Foundation\Http\Middleware\Authenticate',
'orchestra.csrf' => 'Orchestra\Foundation\Http\Middleware\VerifyCsrfToken',
'orchestra.guest' => 'Orchestra\Foundation\Http\Middleware\IsGuest',
'orchestra.guest' => 'Orchestra\Foundation\Http\Middleware\RedirectIfAuthenticated',
'orchestra.installable' => 'Orchestra\Foundation\Http\Middleware\CanBeInstalled',
'orchestra.installed' => 'Orchestra\Foundation\Http\Middleware\IsInstalled',
'orchestra.installed' => 'Orchestra\Foundation\Http\Middleware\RedirectIfInstalled',
'orchestra.manage' => 'Orchestra\Foundation\Http\Middleware\CanManage',
'orchestra.registrable' => 'Orchestra\Foundation\Http\Middleware\IsRegistrable',
'orchestra.registrable' => 'Orchestra\Foundation\Http\Middleware\CanRegisterUser',
];

/**
Expand Down

0 comments on commit a97b396

Please sign in to comment.