Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakb committed May 18, 2014
1 parent 035d012 commit 6895a5f
Show file tree
Hide file tree
Showing 218 changed files with 2,053 additions and 1,278 deletions.
33 changes: 26 additions & 7 deletions bootstrap/compiled.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected function getConcrete($abstract)
}
protected function missingLeadingSlash($abstract)
{
return is_string($abstract) && !starts_with($abstract, '\\');
return is_string($abstract) && strpos($abstract, '\\') !== 0;
}
public function build($concrete, $parameters = array())
{
Expand Down Expand Up @@ -1118,7 +1118,7 @@ public static function createFromBase(SymfonyRequest $request)
if ($request instanceof static) {
return $request;
}
return with($self = new static())->duplicate($request->query->all(), $request->request->all(), $request->attributes->all(), $request->cookies->all(), $request->files->all(), $request->server->all());
return with(new static())->duplicate($request->query->all(), $request->request->all(), $request->attributes->all(), $request->cookies->all(), $request->files->all(), $request->server->all());
}
public function session()
{
Expand Down Expand Up @@ -3155,7 +3155,7 @@ public static function setFacadeApplication($app)
}
public static function __callStatic($method, $args)
{
$instance = static::resolveFacadeInstance(static::getFacadeAccessor());
$instance = static::getFacadeRoot();
switch (count($args)) {
case 0:
return $instance->{$method}();
Expand Down Expand Up @@ -3382,6 +3382,12 @@ public function handle($level, $message, $file = 'unknown', $line = 0, $context
if (!class_exists('Symfony\\Component\\Debug\\Exception\\ContextErrorException')) {
require __DIR__.'/../vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/ContextErrorException.php';
}
if (!class_exists('Symfony\\Component\\Debug\\Exception\\FlattenException')) {
require __DIR__.'/../vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/FlattenException.php';
}
if (PHP_VERSION_ID < 50400 && isset($context['GLOBALS']) && is_array($context)) {
unset($context['GLOBALS']);
}
$exception = new ContextErrorException(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line), 0, $level, $file, $line, $context);
$exceptionHandler = set_exception_handler(function () {

Expand Down Expand Up @@ -6702,10 +6708,10 @@ public function attributesToArray()
if (!array_key_exists($key, $attributes)) {
continue;
}
$attributes[$key] = $this->mutateAttribute($key, $attributes[$key]);
$attributes[$key] = $this->mutateAttributeForArray($key, $attributes[$key]);
}
foreach ($this->appends as $key) {
$attributes[$key] = $this->mutateAttribute($key, null);
$attributes[$key] = $this->mutateAttributeForArray($key, null);
}
return $attributes;
}
Expand Down Expand Up @@ -6793,6 +6799,11 @@ protected function mutateAttribute($key, $value)
{
return $this->{'get' . studly_case($key) . 'Attribute'}($value);
}
protected function mutateAttributeForArray($key, $value)
{
$value = $this->mutateAttribute($key, $value);
return $value instanceof ArrayableInterface ? $value->toArray() : $value;
}
public function setAttribute($key, $value)
{
if ($this->hasSetMutator($key)) {
Expand Down Expand Up @@ -7924,7 +7935,7 @@ protected function addPadding($value)
protected function stripPadding($value)
{
$pad = ord($value[($len = strlen($value)) - 1]);
return $this->paddingIsValid($pad, $value) ? substr($value, 0, strlen($value) - $pad) : $value;
return $this->paddingIsValid($pad, $value) ? substr($value, 0, $len - $pad) : $value;
}
protected function paddingIsValid($pad, $value)
{
Expand Down Expand Up @@ -8137,6 +8148,10 @@ public function popHandler()
}
return array_shift($this->handlers);
}
public function getHandlers()
{
return $this->handlers;
}
public function pushProcessor($callback)
{
if (!is_callable($callback)) {
Expand All @@ -8151,6 +8166,10 @@ public function popProcessor()
}
return array_shift($this->processors);
}
public function getProcessors()
{
return $this->processors;
}
public function addRecord($level, $message, array $context = array())
{
if (!$this->handlers) {
Expand Down Expand Up @@ -8476,7 +8495,7 @@ class RotatingFileHandler extends StreamHandler
protected $nextRotation;
protected $filenameFormat;
protected $dateFormat;
public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = 420)
public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null)
{
$this->filename = $filename;
$this->maxFiles = (int) $maxFiles;
Expand Down
Loading

0 comments on commit 6895a5f

Please sign in to comment.