Skip to content

Commit

Permalink
Merge branch '3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Jul 30, 2016
2 parents f7218ac + e9064f6 commit b632e2a
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 110 deletions.
4 changes: 4 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,20 @@ return Symfony\CS\Config\Config::create()
'phpdoc_no_access',
'-phpdoc_no_empty_return',
'phpdoc_no_package',
'phpdoc_order',
'-phpdoc_params',
'phpdoc_scalar',
'phpdoc_separation',
'phpdoc_short_description',
'phpdoc_to_comment',
'phpdoc_trim',
'phpdoc_type_to_var',
'phpdoc_types',
'phpdoc_var_without_name',
'print_to_echo',
'remove_leading_slash_use',
'remove_lines_between_uses',
'self_accessor',
'short_array_syntax',
'single_array_no_trailing_comma',
'single_blank_line_before_namespace',
Expand Down
2 changes: 2 additions & 0 deletions fixture/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@

'log' => 'daily',

'log_level' => env('APP_LOG_LEVEL', 'debug'),

/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
Expand Down
2 changes: 2 additions & 0 deletions fixture/config/broadcasting.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "redis", "log"
|
*/

'default' => env('BROADCAST_DRIVER', 'pusher'),
Expand Down
2 changes: 2 additions & 0 deletions fixture/config/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
| Supported: "apc", "array", "database", "file", "memcached", "redis"
|
*/

'default' => env('CACHE_DRIVER', 'array'),
Expand Down
2 changes: 1 addition & 1 deletion fixture/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
|
*/

'fetch' => PDO::FETCH_CLASS,
'fetch' => PDO::FETCH_OBJ,

/*
|--------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion fixture/config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses",
| "log", "sparkpost"
|
*/

Expand Down
6 changes: 3 additions & 3 deletions fixture/config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'expire' => 60,
'expire' => 90,
],

'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'ttr' => 60,
'ttr' => 90,
],

'sqs' => [
Expand All @@ -61,7 +61,7 @@
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'expire' => 60,
'expire' => 90,
],

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

'domain' => null,
'domain' => env('SESSION_DOMAIN', null),

/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions fixture/resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field is required.',
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Kernel extends \Illuminate\Foundation\Console\Kernel
*
* @param \Exception $e
*
* @return void
*
* @throws \Exception
*
* @return void
*/
protected function reportException(Exception $e)
{
Expand Down
48 changes: 2 additions & 46 deletions src/Exceptions/ApplicationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,10 @@

namespace Orchestra\Testbench\Exceptions;

use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Foundation\Testing\HttpException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

/**
* @deprecated v3.3.0
*/
class ApplicationHandler extends ExceptionHandler
class ApplicationHandler extends Handler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
AuthorizationException::class,
HttpException::class,
ModelNotFoundException::class,
ValidationException::class,
];

/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
*
* @return void
*/
public function report(Exception $e)
{
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);
}
//
}
2 changes: 1 addition & 1 deletion src/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Kernel extends \Illuminate\Foundation\Http\Kernel
* @var array
*/
protected $routeMiddleware = [
'auth' => Middleware\Authenticate::class,
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
Expand Down
55 changes: 0 additions & 55 deletions src/Http/Middleware/Authenticate.php

This file was deleted.

0 comments on commit b632e2a

Please sign in to comment.