Browse Source

Merge branch 'develop' into staging

Taylor Otwell 12 years ago
parent
commit
5c03938e3b

+ 1 - 0
application/config/strings.php

@@ -95,6 +95,7 @@ return array(
 		'series',
 		'series',
 		'sheep',
 		'sheep',
 		'species',
 		'species',
+		'moose',
 	),
 	),
 
 
 	/*
 	/*

+ 1 - 1
laravel/cache/drivers/driver.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel\Cache\Drivers; use Closure;
+<?php namespace Laravel\Cache\Drivers;
 
 
 abstract class Driver {
 abstract class Driver {
 
 

+ 0 - 2
laravel/config.php

@@ -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 - 1
laravel/cookie.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel; use Closure;
+<?php namespace Laravel;
 
 
 class Cookie {
 class Cookie {
 
 

+ 2 - 2
laravel/database/connection.php

@@ -97,14 +97,14 @@ class Connection {
 	/**
 	/**
 	 * 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

+ 2 - 2
laravel/database/eloquent/query.php

@@ -129,9 +129,9 @@ class Query {
 		{
 		{
 			foreach ($this->model_includes() as $relationship => $constraints)
 			foreach ($this->model_includes() as $relationship => $constraints)
 			{
 			{
-				// If the relationship is nested, we will skip laoding it here and let
+				// If the relationship is nested, we will skip loading it here and let
 				// the load method parse and set the nested eager loads on the right
 				// the load method parse and set the nested eager loads on the right
-				// relationship when it is getting ready to eager laod.
+				// relationship when it is getting ready to eager load.
 				if (str_contains($relationship, '.'))
 				if (str_contains($relationship, '.'))
 				{
 				{
 					continue;
 					continue;

+ 4 - 1
laravel/database/query.php

@@ -414,7 +414,10 @@ class Query {
 		// Once the callback has been run on the query, we will store the nested
 		// Once the callback has been run on the query, we will store the nested
 		// query instance on the where clause array so that it's passed to the
 		// query instance on the where clause array so that it's passed to the
 		// query's query grammar instance when building.
 		// query's query grammar instance when building.
-		$this->wheres[] = compact('type', 'query', 'connector');
+		if ($query->wheres !== null)
+		{
+			$this->wheres[] = compact('type', 'query', 'connector');
+		}
 
 
 		$this->bindings = array_merge($this->bindings, $query->bindings);
 		$this->bindings = array_merge($this->bindings, $query->bindings);
 
 

+ 1 - 0
laravel/documentation/changes.md

@@ -35,6 +35,7 @@
 - [Added `unless` structure to Blade template engine](/docs/views/templating#blade-unless).
 - [Added `unless` structure to Blade template engine](/docs/views/templating#blade-unless).
 - [Added Blade comments](/docs/views/templating#blade-comments).
 - [Added Blade comments](/docs/views/templating#blade-comments).
 - [Added simpler environment management](/docs/install#environments).
 - [Added simpler environment management](/docs/install#environments).
+- Added `Blade::extend()` method to define custom blade compilers.
 - Added `View::exists` method.
 - Added `View::exists` method.
 - Use [Memcached](http://php.net/manual/en/book.memcached.php) API instead of older [Memcache](http://php.net/manual/en/book.memcache.php) API.
 - Use [Memcached](http://php.net/manual/en/book.memcached.php) API instead of older [Memcache](http://php.net/manual/en/book.memcache.php) API.
 - Added support for bundles outside of the bundle directory.
 - Added support for bundles outside of the bundle directory.

+ 1 - 1
laravel/file.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel; use Closure, FilesystemIterator as fIterator;
+<?php namespace Laravel; use FilesystemIterator as fIterator;
 
 
 class File {
 class File {
 
 

+ 3 - 3
laravel/lang.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel; use Closure;
+<?php namespace Laravel;
 
 
 class Lang {
 class Lang {
 
 
@@ -103,7 +103,7 @@ class Lang {
 	 *		$line = Lang::line('validation.required')->get('sp');
 	 *		$line = Lang::line('validation.required')->get('sp');
 	 *
 	 *
 	 *		// Return a default value if the line doesn't exist
 	 *		// Return a default value if the line doesn't exist
-	 *		$line = Lang::line('validation.required', null, 'Default');
+	 *		$line = Lang::line('validation.required')->get(null, 'Default');
 	 * </code>
 	 * </code>
 	 *
 	 *
 	 * @param  string  $language
 	 * @param  string  $language
@@ -249,4 +249,4 @@ class Lang {
 		return (string) $this->get();
 		return (string) $this->get();
 	}
 	}
 
 
-}
+}

+ 1 - 1
laravel/request.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel; use Closure;
+<?php namespace Laravel;
 
 
 class Request {
 class Request {
 
 

+ 0 - 1
laravel/session/payload.php

@@ -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;