fixed bug in view composers. changed crypter alias.

This commit is contained in:
Taylor Otwell 2011-10-05 23:22:25 -05:00
parent 1cafc02d55
commit 48715bbb7d
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
'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',

View File

@ -131,7 +131,7 @@ protected static function name($name)
// 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;
}
}