New and old code.

This commit is contained in:
James Cole 2015-02-06 04:52:16 +01:00
parent ed475b1b9c
commit c502dd445b
48 changed files with 240 additions and 44 deletions

11
.env Normal file
View File

@ -0,0 +1,11 @@
APP_ENV=homestead
APP_DEBUG=true
APP_KEY=SomeRandomString
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file

View File

@ -1,4 +1,4 @@
<?php namespace App\Commands;
<?php namespace FireflyIII\Commands;
abstract class Command {

View File

@ -1,4 +1,4 @@
<?php namespace App\Console\Commands;
<?php namespace FireflyIII\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;

View File

@ -1,4 +1,4 @@
<?php namespace App\Console;
<?php namespace FireflyIII\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@ -11,7 +11,7 @@ class Kernel extends ConsoleKernel {
* @var array
*/
protected $commands = [
'App\Console\Commands\Inspire',
'FireflyIII\Console\Commands\Inspire',
];
/**

View File

@ -1,4 +1,4 @@
<?php namespace App\Events;
<?php namespace FireflyIII\Events;
abstract class Event {

View File

@ -1,4 +1,4 @@
<?php namespace App\Exceptions;
<?php namespace FireflyIII\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

View File

@ -1,6 +1,6 @@
<?php namespace App\Http\Controllers\Auth;
<?php namespace FireflyIII\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use FireflyIII\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Registrar;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

View File

@ -1,6 +1,6 @@
<?php namespace App\Http\Controllers\Auth;
<?php namespace FireflyIII\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use FireflyIII\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\PasswordBroker;
use Illuminate\Foundation\Auth\ResetsPasswords;

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace FireflyIII\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace FireflyIII\Http\Controllers;
class HomeController extends Controller {

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Controllers;
<?php namespace FireflyIII\Http\Controllers;
class WelcomeController extends Controller {

View File

@ -1,4 +1,4 @@
<?php namespace App\Http;
<?php namespace FireflyIII\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
@ -15,7 +15,7 @@ class Kernel extends HttpKernel {
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'App\Http\Middleware\VerifyCsrfToken',
'FireflyIII\Http\Middleware\VerifyCsrfToken',
];
/**
@ -24,9 +24,9 @@ class Kernel extends HttpKernel {
* @var array
*/
protected $routeMiddleware = [
'auth' => 'App\Http\Middleware\Authenticate',
'auth' => 'FireflyIII\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
'guest' => 'FireflyIII\Http\Middleware\RedirectIfAuthenticated',
];
}

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace FireflyIII\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace FireflyIII\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Middleware;
<?php namespace FireflyIII\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

View File

@ -1,4 +1,4 @@
<?php namespace App\Http\Requests;
<?php namespace FireflyIII\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;

14
app/Models/Account.php Normal file
View File

@ -0,0 +1,14 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class Account
*
* @package FireflyIII\Models
*/
class Account extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class AccountMeta extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class AccountType extends Model {
//
}

9
app/Models/Bill.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Bill extends Model {
//
}

9
app/Models/Budget.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Budget extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class BudgetLimit extends Model {
//
}

9
app/Models/Category.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model {
//
}

9
app/Models/Component.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Component extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class LimitRepetition extends Model {
//
}

9
app/Models/PiggyBank.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class PiggyBank extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class PiggyBankEvent extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class PiggyBankRepetition extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Preference extends Model {
//
}

9
app/Models/Reminder.php Normal file
View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Reminder extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class TransactionCurrency extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class TransactionGroup extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class TransactionJournal extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class TransactionRelation extends Model {
//
}

View File

@ -0,0 +1,9 @@
<?php namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
class TransactionType extends Model {
//
}

View File

@ -1,4 +1,4 @@
<?php namespace App;
<?php namespace FireflyIII\Models;
use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace FireflyIII\Providers;
use Illuminate\Support\ServiceProvider;
@ -27,7 +27,7 @@ class AppServiceProvider extends ServiceProvider {
{
$this->app->bind(
'Illuminate\Contracts\Auth\Registrar',
'App\Services\Registrar'
'FireflyIII\Services\Registrar'
);
}

View File

@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace FireflyIII\Providers;
use Illuminate\Bus\Dispatcher;
use Illuminate\Support\ServiceProvider;
@ -16,7 +16,7 @@ class BusServiceProvider extends ServiceProvider {
$dispatcher->mapUsing(function($command)
{
return Dispatcher::simpleMapping(
$command, 'App\Commands', 'App\Handlers\Commands'
$command, 'FireflyIII\Commands', 'FireflyIII\Handlers\Commands'
);
});
}

View File

@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace FireflyIII\Providers;
use Illuminate\Support\ServiceProvider;

View File

@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace FireflyIII\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

View File

@ -1,4 +1,4 @@
<?php namespace App\Providers;
<?php namespace FireflyIII\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
@ -12,7 +12,7 @@ class RouteServiceProvider extends ServiceProvider {
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
protected $namespace = 'FireflyIII\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.

View File

@ -1,6 +1,6 @@
<?php namespace App\Services;
<?php namespace FireflyIII\Services;
use App\User;
use FireflyIII\User;
use Validator;
use Illuminate\Contracts\Auth\Registrar as RegistrarContract;

View File

@ -28,17 +28,17 @@ $app = new Illuminate\Foundation\Application(
$app->singleton(
'Illuminate\Contracts\Http\Kernel',
'App\Http\Kernel'
'FireflyIII\Http\Kernel'
);
$app->singleton(
'Illuminate\Contracts\Console\Kernel',
'App\Console\Kernel'
'FireflyIII\Console\Kernel'
);
$app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler',
'App\Exceptions\Handler'
'FireflyIII\Exceptions\Handler'
);
/*

View File

@ -40,7 +40,7 @@
"database"
],
"psr-4": {
"App\\": "app/"
"FireflyIII\\": "app/"
}
},
"autoload-dev": {

View File

@ -139,11 +139,11 @@ return [
/*
* Application Service Providers...
*/
'App\Providers\AppServiceProvider',
'App\Providers\BusServiceProvider',
'App\Providers\ConfigServiceProvider',
'App\Providers\EventServiceProvider',
'App\Providers\RouteServiceProvider',
'FireflyIII\Providers\AppServiceProvider',
'FireflyIII\Providers\BusServiceProvider',
'FireflyIII\Providers\ConfigServiceProvider',
'FireflyIII\Providers\EventServiceProvider',
'FireflyIII\Providers\RouteServiceProvider',
],

View File

@ -28,7 +28,7 @@ return [
|
*/
'model' => 'App\User',
'model' => 'FireflyIII\User',
/*
|--------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
suites:
main:
namespace: App
psr4_prefix: App
namespace: FireflyIII
psr4_prefix: FireflyIII
src_path: app