Skip to content

Commit

Permalink
Namespace App -> IXP
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Feb 9, 2015
1 parent fecb93b commit a27704c
Show file tree
Hide file tree
Showing 27 changed files with 53 additions and 46 deletions.
2 changes: 1 addition & 1 deletion app/Commands/Command.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Commands;
<?php namespace IXP\Commands;

abstract class Command {

Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/Inspire.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Console\Commands;
<?php namespace IXP\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,4 +1,4 @@
<?php namespace App\Console;
<?php namespace IXP\Console;

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

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Events;
<?php namespace IXP\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,4 +1,4 @@
<?php namespace App\Exceptions;
<?php namespace IXP\Exceptions;

use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace App\Http\Controllers\Auth;
<?php namespace IXP\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use IXP\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Registrar;
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,6 +1,6 @@
<?php namespace App\Http\Controllers\Auth;
<?php namespace IXP\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use IXP\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\PasswordBroker;
use Illuminate\Foundation\Auth\ResetsPasswords;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace IXP\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace IXP\Http\Controllers;

class HomeController extends Controller {

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/WelcomeController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace IXP\Http\Controllers;

class WelcomeController extends Controller {

Expand Down
10 changes: 5 additions & 5 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http;
<?php namespace IXP\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

Expand All @@ -15,7 +15,7 @@ class Kernel extends HttpKernel {
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'App\Http\Middleware\VerifyCsrfToken',
'IXP\Http\Middleware\VerifyCsrfToken',
];

/**
Expand All @@ -24,9 +24,9 @@ class Kernel extends HttpKernel {
* @var array
*/
protected $routeMiddleware = [
'auth' => 'App\Http\Middleware\Authenticate',
'auth' => 'IXP\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
'guest' => 'IXP\Http\Middleware\RedirectIfAuthenticated',
];


Expand All @@ -43,7 +43,7 @@ class Kernel extends HttpKernel {
public function handle( $request )
{
// remove CSRF middleware as it's not available in ZF1
$this->middleware = array_diff($this->middleware, ['App\Http\Middleware\VerifyCsrfToken'] );
$this->middleware = array_diff($this->middleware, ['IXP\Http\Middleware\VerifyCsrfToken'] );

try
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace IXP\Http\Middleware;

use Closure;
use Illuminate\Contracts\Auth\Guard;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace IXP\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,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace IXP\Http\Middleware;

use Closure;
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,4 +1,4 @@
<?php namespace App\Http\Requests;
<?php namespace IXP\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

Expand Down
4 changes: 2 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace IXP\Providers;

use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -27,7 +27,7 @@ public function register()
{
$this->app->bind(
'Illuminate\Contracts\Auth\Registrar',
'App\Services\Registrar'
'IXP\Services\Registrar'
);
}

Expand Down
4 changes: 2 additions & 2 deletions app/Providers/BusServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace IXP\Providers;

use Illuminate\Bus\Dispatcher;
use Illuminate\Support\ServiceProvider;
Expand All @@ -16,7 +16,7 @@ public function boot(Dispatcher $dispatcher)
$dispatcher->mapUsing(function($command)
{
return Dispatcher::simpleMapping(
$command, 'App\Commands', 'App\Handlers\Commands'
$command, 'IXP\Commands', 'IXP\Handlers\Commands'
);
});
}
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/ConfigServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace IXP\Providers;

use Illuminate\Support\ServiceProvider;

Expand Down
2 changes: 1 addition & 1 deletion app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace IXP\Providers;

use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
Expand Down
4 changes: 2 additions & 2 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace IXP\Providers;

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

/**
* Define your route model bindings, pattern filters, etc.
Expand Down
4 changes: 2 additions & 2 deletions app/Services/Registrar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace App\Services;
<?php namespace IXP\Services;

use App\User;
use IXP\User;
use Validator;
use Illuminate\Contracts\Auth\Registrar as RegistrarContract;

Expand Down
2 changes: 1 addition & 1 deletion app/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace App;
<?php namespace IXP;

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',
'App\Http\Kernel'
'IXP\Http\Kernel'
);

$app->singleton(
'Illuminate\Contracts\Console\Kernel',
'App\Console\Kernel'
'IXP\Console\Kernel'
);

$app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler',
'App\Exceptions\Handler'
'IXP\Exceptions\Handler'
);

/*
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"opensolutions/minify": "1.*",
"komola/bootstrap-zend-framework": "dev-master",
"opensolutions/oss-snmp": "dev-master",
"opensolutions/doctrine2bridge": "2.4.*",
"opensolutions/doctrine2bridge-l5": "2.4.*",

"laravel/framework": "5.0.*",
"oss2/doctrine2": "dev-master",
Expand Down Expand Up @@ -86,7 +86,7 @@
"IXP_": "library/"
},
"psr-4": {
"App\\": "app/"
"IXP\\": "app/"
}
},
"autoload-dev": {
Expand Down
17 changes: 12 additions & 5 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,18 @@
/*
* Application Service Providers...
*/
'App\Providers\AppServiceProvider',
'App\Providers\BusServiceProvider',
'App\Providers\ConfigServiceProvider',
'App\Providers\EventServiceProvider',
'App\Providers\RouteServiceProvider',
'IXP\Providers\AppServiceProvider',
'IXP\Providers\BusServiceProvider',
'IXP\Providers\ConfigServiceProvider',
'IXP\Providers\EventServiceProvider',
'IXP\Providers\RouteServiceProvider',


/*
* Third party providers
*/
'Doctrine2Bridge\Doctrine2CacheBridgeServiceProvider',
'Doctrine2Bridge\Doctrine2BridgeServiceProvider',

],

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' => 'App\User',
'model' => 'IXP\User',

/*
|--------------------------------------------------------------------------
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: App
psr4_prefix: App
namespace: IXP
psr4_prefix: IXP
src_path: app

0 comments on commit a27704c

Please sign in to comment.