mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Updated various files after upgrade to laravel 5.2
This commit is contained in:
parent
35deed1d10
commit
8c37ef3a95
@ -1,12 +0,0 @@
|
|||||||
<?php namespace FireflyIII\Commands;
|
|
||||||
/**
|
|
||||||
* Class Command
|
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
* @package FireflyIII\Commands
|
|
||||||
*/
|
|
||||||
abstract class Command
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
22
app/Console/Kernel.php
Normal file → Executable file
22
app/Console/Kernel.php
Normal file → Executable file
@ -1,37 +1,27 @@
|
|||||||
<?php namespace FireflyIII\Console;
|
<?php
|
||||||
|
|
||||||
|
namespace FireflyIII\Console;
|
||||||
|
|
||||||
use Illuminate\Console\Scheduling\Schedule;
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class Kernel
|
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
* @package FireflyIII\Console
|
|
||||||
*/
|
|
||||||
class Kernel extends ConsoleKernel
|
class Kernel extends ConsoleKernel
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Artisan commands provided by your application.
|
* The Artisan commands provided by your application.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $commands
|
protected $commands = [
|
||||||
= [
|
];
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the application's command schedule.
|
* Define the application's command schedule.
|
||||||
*
|
*
|
||||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||||
*
|
|
||||||
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
|
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
12
app/Events/Event.php
Normal file → Executable file
12
app/Events/Event.php
Normal file → Executable file
@ -1,14 +1,8 @@
|
|||||||
<?php namespace FireflyIII\Events;
|
<?php
|
||||||
|
|
||||||
|
namespace FireflyIII\Events;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class Event
|
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
* @package FireflyIII\Events
|
|
||||||
*/
|
|
||||||
abstract class Event
|
abstract class Event
|
||||||
{
|
{
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
}
|
}
|
||||||
|
62
app/Exceptions/Handler.php
Normal file → Executable file
62
app/Exceptions/Handler.php
Normal file → Executable file
@ -1,59 +1,51 @@
|
|||||||
<?php namespace FireflyIII\Exceptions;
|
<?php
|
||||||
|
|
||||||
|
namespace FireflyIII\Exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
use Illuminate\Auth\Access\AuthorizationException;
|
||||||
|
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
use Illuminate\Foundation\Validation\ValidationException;
|
||||||
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||||
|
|
||||||
/**
|
|
||||||
* Class Handler
|
|
||||||
*
|
|
||||||
* @codeCoverageIgnore
|
|
||||||
* @package FireflyIII\Exceptions
|
|
||||||
*/
|
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of the exception types that should not be reported.
|
* A list of the exception types that should not be reported.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $dontReport
|
protected $dontReport = [
|
||||||
= [
|
AuthorizationException::class,
|
||||||
'Symfony\Component\HttpKernel\Exception\HttpException'
|
HttpException::class,
|
||||||
];
|
ModelNotFoundException::class,
|
||||||
|
ValidationException::class,
|
||||||
/**
|
];
|
||||||
* Render an exception into an HTTP response.
|
|
||||||
*
|
|
||||||
* @param \Illuminate\Http\Request $request
|
|
||||||
* @param \Exception $e
|
|
||||||
* @SuppressWarnings(PHPMD.ShortVariable)
|
|
||||||
*
|
|
||||||
* @return \Illuminate\Http\Response
|
|
||||||
*/
|
|
||||||
public function render($request, Exception $e)
|
|
||||||
{
|
|
||||||
if ($e instanceof HttpException) {
|
|
||||||
return $this->renderHttpException($e);
|
|
||||||
} else {
|
|
||||||
return parent::render($request, $e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Report or log an exception.
|
* Report or log an exception.
|
||||||
*
|
*
|
||||||
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
||||||
* @SuppressWarnings(PHPMD.ShortVariable)
|
|
||||||
*
|
|
||||||
* @param \Exception $e
|
|
||||||
*
|
*
|
||||||
|
* @param \Exception $e
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function report(Exception $e)
|
public function report(Exception $e)
|
||||||
{
|
{
|
||||||
parent::report($e);
|
return parent::report($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render an exception into an HTTP response.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Http\Request $request
|
||||||
|
* @param \Exception $e
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function render($request, Exception $e)
|
||||||
|
{
|
||||||
|
return parent::render($request, $e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
64
app/User.php
Normal file → Executable file
64
app/User.php
Normal file → Executable file
@ -1,73 +1,27 @@
|
|||||||
<?php namespace FireflyIII;
|
<?php
|
||||||
|
|
||||||
use Carbon\Carbon;
|
namespace FireflyIII;
|
||||||
use FireflyIII\Models\Account;
|
|
||||||
use FireflyIII\Models\Attachment;
|
|
||||||
use FireflyIII\Models\Bill;
|
|
||||||
use FireflyIII\Models\Budget;
|
|
||||||
use FireflyIII\Models\Category;
|
|
||||||
use FireflyIII\Models\Preference;
|
|
||||||
use FireflyIII\Models\Role;
|
|
||||||
use FireflyIII\Models\Tag;
|
|
||||||
use FireflyIII\Models\TransactionJournal;
|
|
||||||
use Illuminate\Auth\Authenticatable;
|
|
||||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
|
||||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
|
||||||
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
use Illuminate\Database\Query\Builder;
|
|
||||||
use Illuminate\Support\Collection;
|
|
||||||
use Zizaco\Entrust\Traits\EntrustUserTrait;
|
|
||||||
|
|
||||||
/**
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||||
* Class User
|
|
||||||
*
|
class User extends Authenticatable
|
||||||
* @package FireflyIII
|
|
||||||
* @property integer $id
|
|
||||||
* @property Carbon $created_at
|
|
||||||
* @property Carbon $updated_at
|
|
||||||
* @property string $email
|
|
||||||
* @property string $password
|
|
||||||
* @property string $reset
|
|
||||||
* @property string $remember_token
|
|
||||||
* @property-read Collection|Account[] $accounts
|
|
||||||
* @property-read Collection|Tag[] $tags
|
|
||||||
* @property-read Collection|Bill[] $bills
|
|
||||||
* @property-read Collection|Budget[] $budgets
|
|
||||||
* @property-read Collection|Category[] $categories
|
|
||||||
* @property-read Collection|Preference[] $preferences
|
|
||||||
* @property-read Collection|TransactionJournal[] $transactionjournals
|
|
||||||
* @property-read Collection|Role $roles
|
|
||||||
* @method static Builder|User whereId($value)
|
|
||||||
* @method static Builder|User whereCreatedAt($value)
|
|
||||||
* @method static Builder|User whereUpdatedAt($value)
|
|
||||||
* @method static Builder|User whereEmail($value)
|
|
||||||
* @method static Builder|User wherePassword($value)
|
|
||||||
* @method static Builder|User whereReset($value)
|
|
||||||
* @method static Builder|User whereRememberToken($value)
|
|
||||||
* @property boolean $blocked
|
|
||||||
* @property-read Collection|Attachment[] $attachments
|
|
||||||
* @method static Builder|User whereBlocked($value)
|
|
||||||
* @property string $blocked_code
|
|
||||||
* @method static Builder|User whereBlockedCode($value)
|
|
||||||
*/
|
|
||||||
class User extends Model implements AuthenticatableContract, CanResetPasswordContract
|
|
||||||
{
|
{
|
||||||
|
|
||||||
use Authenticatable, CanResetPassword, EntrustUserTrait;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that are mass assignable.
|
* The attributes that are mass assignable.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $fillable = ['email', 'password', 'blocked', 'blocked_code'];
|
protected $fillable = ['email', 'password', 'blocked', 'blocked_code'];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes excluded from the model's JSON form.
|
* The attributes excluded from the model's JSON form.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $hidden = ['password', 'remember_token'];
|
protected $hidden = ['password', 'remember_token'];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The database table used by the model.
|
* The database table used by the model.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user