Merge pull request #664 from franzliedke/patch-3
Remove more unneeded Closure references
This commit is contained in:
commit
135b6d5132
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace Laravel\Cache\Drivers; use Closure;
|
<?php namespace Laravel\Cache\Drivers;
|
||||||
|
|
||||||
abstract class Driver {
|
abstract class Driver {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
<?php namespace Laravel; defined('DS') or die('No direct script access.');
|
<?php namespace Laravel; defined('DS') or die('No direct script access.');
|
||||||
|
|
||||||
use Closure;
|
|
||||||
|
|
||||||
class Config {
|
class Config {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace Laravel; use Closure;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
class Cookie {
|
class Cookie {
|
||||||
|
|
||||||
|
|
|
@ -97,14 +97,14 @@ protected function grammar()
|
||||||
/**
|
/**
|
||||||
* Execute a callback wrapped in a database transaction.
|
* Execute a callback wrapped in a database transaction.
|
||||||
*
|
*
|
||||||
* @param Closure $callback
|
* @param callback $callback
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function transaction($callback)
|
public function transaction($callback)
|
||||||
{
|
{
|
||||||
$this->pdo->beginTransaction();
|
$this->pdo->beginTransaction();
|
||||||
|
|
||||||
// After beginning the database transaction, we will call the Closure
|
// After beginning the database transaction, we will call the callback
|
||||||
// so that it can do its database work. If an exception occurs we'll
|
// so that it can do its database work. If an exception occurs we'll
|
||||||
// rollback the transaction and re-throw back to the developer.
|
// rollback the transaction and re-throw back to the developer.
|
||||||
try
|
try
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace Laravel; use Closure, FilesystemIterator as fIterator;
|
<?php namespace Laravel; use FilesystemIterator as fIterator;
|
||||||
|
|
||||||
class File {
|
class File {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace Laravel; use Closure;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
class Lang {
|
class Lang {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php namespace Laravel; use Closure;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
class Request {
|
class Request {
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?php namespace Laravel\Session;
|
<?php namespace Laravel\Session;
|
||||||
|
|
||||||
use Closure;
|
|
||||||
use Laravel\Str;
|
use Laravel\Str;
|
||||||
use Laravel\Config;
|
use Laravel\Config;
|
||||||
use Laravel\Cookie;
|
use Laravel\Cookie;
|
||||||
|
|
Loading…
Reference in New Issue