mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-23 23:13:18 -06:00
New and old code.
This commit is contained in:
parent
ed475b1b9c
commit
c502dd445b
11
.env
Normal file
11
.env
Normal 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
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Commands;
|
||||
<?php namespace FireflyIII\Commands;
|
||||
|
||||
abstract class Command {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Console\Commands;
|
||||
<?php namespace FireflyIII\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Events;
|
||||
<?php namespace FireflyIII\Events;
|
||||
|
||||
abstract class Event {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Exceptions;
|
||||
<?php namespace FireflyIII\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Http\Controllers;
|
||||
<?php namespace FireflyIII\Http\Controllers;
|
||||
|
||||
class HomeController extends Controller {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Http\Controllers;
|
||||
<?php namespace FireflyIII\Http\Controllers;
|
||||
|
||||
class WelcomeController extends Controller {
|
||||
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Http\Middleware;
|
||||
<?php namespace FireflyIII\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Http\Middleware;
|
||||
<?php namespace FireflyIII\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Http\Middleware;
|
||||
<?php namespace FireflyIII\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
|
||||
|
@ -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
14
app/Models/Account.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class Account
|
||||
*
|
||||
* @package FireflyIII\Models
|
||||
*/
|
||||
class Account extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/AccountMeta.php
Normal file
9
app/Models/AccountMeta.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AccountMeta extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/AccountType.php
Normal file
9
app/Models/AccountType.php
Normal 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
9
app/Models/Bill.php
Normal 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
9
app/Models/Budget.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Budget extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/BudgetLimit.php
Normal file
9
app/Models/BudgetLimit.php
Normal 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
9
app/Models/Category.php
Normal 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
9
app/Models/Component.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Component extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/LimitRepetition.php
Normal file
9
app/Models/LimitRepetition.php
Normal 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
9
app/Models/PiggyBank.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBank extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/PiggyBankEvent.php
Normal file
9
app/Models/PiggyBankEvent.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBankEvent extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/PiggyBankRepetition.php
Normal file
9
app/Models/PiggyBankRepetition.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PiggyBankRepetition extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/Preference.php
Normal file
9
app/Models/Preference.php
Normal 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
9
app/Models/Reminder.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Reminder extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/Transaction.php
Normal file
9
app/Models/Transaction.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Transaction extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/TransactionCurrency.php
Normal file
9
app/Models/TransactionCurrency.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionCurrency extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/TransactionGroup.php
Normal file
9
app/Models/TransactionGroup.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionGroup extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/TransactionJournal.php
Normal file
9
app/Models/TransactionJournal.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionJournal extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/TransactionRelation.php
Normal file
9
app/Models/TransactionRelation.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionRelation extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
9
app/Models/TransactionType.php
Normal file
9
app/Models/TransactionType.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TransactionType extends Model {
|
||||
|
||||
//
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App;
|
||||
<?php namespace FireflyIII\Models;
|
||||
|
||||
use Illuminate\Auth\Authenticatable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
);
|
||||
});
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php namespace App\Providers;
|
||||
<?php namespace FireflyIII\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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'
|
||||
);
|
||||
|
||||
/*
|
||||
|
@ -40,7 +40,7 @@
|
||||
"database"
|
||||
],
|
||||
"psr-4": {
|
||||
"App\\": "app/"
|
||||
"FireflyIII\\": "app/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
|
@ -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',
|
||||
|
||||
],
|
||||
|
||||
|
@ -28,7 +28,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'model' => 'App\User',
|
||||
'model' => 'FireflyIII\User',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -1,5 +1,5 @@
|
||||
suites:
|
||||
main:
|
||||
namespace: App
|
||||
psr4_prefix: App
|
||||
namespace: FireflyIII
|
||||
psr4_prefix: FireflyIII
|
||||
src_path: app
|
Loading…
Reference in New Issue
Block a user