Skip to content

Commit

Permalink
Revert to App namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
leonjza committed Aug 28, 2015
1 parent 3424caf commit 5658a92
Show file tree
Hide file tree
Showing 25 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/Inspire.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Console\Commands;
namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Console;
namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
Expand All @@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
\Seat\Console\Commands\Inspire::class,
\App\Console\Commands\Inspire::class,
];

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Events;
namespace App\Events;

abstract class Event
{
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Exceptions;
namespace App\Exceptions;

use Exception;
use Symfony\Component\HttpKernel\Exception\HttpException;
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Seat\Http\Controllers\Auth;
namespace App\Http\Controllers\Auth;

use Seat\User;
use App\User;
use Validator;
use Seat\Http\Controllers\Controller;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/PasswordController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Seat\Http\Controllers\Auth;
namespace App\Http\Controllers\Auth;

use Seat\Http\Controllers\Controller;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;

class PasswordController extends Controller
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Controllers;
namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
Expand Down
10 changes: 5 additions & 5 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http;
namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

Expand All @@ -13,11 +13,11 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Seat\Http\Middleware\EncryptCookies::class,
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\Seat\Http\Middleware\VerifyCsrfToken::class,
\App\Http\Middleware\VerifyCsrfToken::class,
];

/**
Expand All @@ -26,8 +26,8 @@ class Kernel extends HttpKernel
* @var array
*/
protected $routeMiddleware = [
'auth' => \Seat\Http\Middleware\Authenticate::class,
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'guest' => \Seat\Http\Middleware\RedirectIfAuthenticated::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
];
}
2 changes: 1 addition & 1 deletion app/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Middleware;
namespace App\Http\Middleware;

use Closure;
use Illuminate\Contracts\Auth\Guard;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/EncryptCookies.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Middleware;
namespace App\Http\Middleware;

use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Middleware;
namespace App\Http\Middleware;

use Closure;
use Illuminate\Contracts\Auth\Guard;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Middleware;
namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/Request.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Http\Requests;
namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/Job.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Jobs;
namespace App\Jobs;

use Illuminate\Bus\Queueable;

Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Providers;
namespace App\Providers;

use Illuminate\Support\ServiceProvider;

Expand Down
6 changes: 3 additions & 3 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Providers;
namespace App\Providers;

use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
Expand All @@ -13,8 +13,8 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'Seat\Events\SomeEvent' => [
'Seat\Listeners\EventListener',
'App\Events\SomeEvent' => [
'App\Listeners\EventListener',
],
];

Expand Down
4 changes: 2 additions & 2 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat\Providers;
namespace App\Providers;

use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
Expand All @@ -14,7 +14,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
protected $namespace = 'Seat\Http\Controllers';
protected $namespace = 'App\Http\Controllers';

/**
* Define your route model bindings, pattern filters, etc.
Expand Down
2 changes: 1 addition & 1 deletion app/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Seat;
namespace App;

use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
Expand Down
6 changes: 3 additions & 3 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@

$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
Seat\Http\Kernel::class
App\Http\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
Seat\Console\Kernel::class
App\Console\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
Seat\Exceptions\Handler::class
App\Exceptions\Handler::class
);

/*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"database"
],
"psr-4": {
"Seat\\": "app/"
"App\\": "app/"
}
},
"autoload-dev": {
Expand Down
6 changes: 3 additions & 3 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@
/*
* Application Service Providers...
*/
Seat\Providers\AppServiceProvider::class,
Seat\Providers\EventServiceProvider::class,
Seat\Providers\RouteServiceProvider::class,
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,

],

Expand Down
2 changes: 1 addition & 1 deletion config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
|
*/

'model' => Seat\User::class,
'model' => App\User::class,

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],

'stripe' => [
'model' => Seat\User::class,
'model' => App\User::class,
'key' => '',
'secret' => '',
],
Expand Down
2 changes: 1 addition & 1 deletion database/factories/ModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|
*/

$factory->define(Seat\User::class, function ($faker) {
$factory->define(App\User::class, function ($faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
Expand Down
4 changes: 2 additions & 2 deletions phpspec.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
suites:
main:
namespace: Seat
psr4_prefix: Seat
namespace: App
psr4_prefix: App
src_path: app

0 comments on commit 5658a92

Please sign in to comment.