Commit 48715bbb by Taylor Otwell

fixed bug in view composers. changed crypter alias.

parent 1cafc02d
......@@ -26,7 +26,7 @@ return array(
'Config' => 'Laravel\\Config',
'Controller' => 'Laravel\\Controller',
'Cookie' => 'Laravel\\Cookie',
'Crypter' => 'Laravel\\Crypter',
'Crypter' => 'Laravel\\Security\\Crypter',
'DB' => 'Laravel\\Database\\Manager',
'Eloquent' => 'Laravel\\Database\\Eloquent\\Model',
'File' => 'Laravel\\File',
......
......@@ -131,7 +131,7 @@ class View {
// could have an array value in which a "name" key exists.
foreach (static::$composers as $key => $value)
{
if ($name === $value or (isset($value['name']) and $name === $value['name'])) { return $key; }
if ($name === $value or (is_array($value) and $name === Arr::get($value, 'name'))) return $key;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment