// Replace is for BC
$this->line .= sprintf(str_replace('"%s"', '%s', $this->dumpSuffix), implode(', ', $args));
}
$this->lastDepth = $depth;
$this->line = mb_convert_encoding($this->line, 'HTML-ENTITIES', 'UTF-8');
if (-1 === $depth) {
AbstractDumper::dumpLine(0);
}
AbstractDumper::dumpLine($depth);
// Replace is for BC
$this->line .= sprintf(str_replace('"%s"', '%s', $this->dumpSuffix), implode(', ', $args));
}
$this->lastDepth = $depth;
$this->line = mb_convert_encoding($this->line, 'HTML-ENTITIES', 'UTF-8');
if (-1 === $depth) {
AbstractDumper::dumpLine(0);
}
AbstractDumper::dumpLine($depth);
$this->line .= 'b';
}
if ($m) {
$this->line .= '"""';
$this->dumpLine($cursor->depth);
} else {
$this->line .= '"';
}
foreach ($str as $str) {
$this->endValue($cursor);
$this->line .= $this->indentPad;
$this->line .= sprintf('<img src="data:%s;base64,%s" /></samp>', $cursor->attr['content-type'], base64_encode($cursor->attr['img-data']));
$this->endValue($cursor);
} else {
parent::dumpString($cursor, $str, $bin, $cut);
}
}
/**
* {@inheritdoc}
}
} elseif ('array' === $type) {
$dumper->enterHash($cursor, Cursor::HASH_INDEXED, 0, false);
$dumper->leaveHash($cursor, Cursor::HASH_INDEXED, 0, false, 0);
} elseif ('string' === $type) {
$dumper->dumpString($cursor, $item, false, 0);
} else {
$dumper->dumpScalar($cursor, $type, $item);
}
}
$cursor->attr = ['if_links' => true];
$dumper->dumpScalar($cursor, 'default', ' ');
$cursor->hashType = 0;
}
$this->dumpItem($dumper, $cursor, $refs, $this->data[$this->position][$this->key]);
}
/**
* Depth-first dumping of items.
*
}
if ($output) {
$prevOutput = $this->setOutput($output);
}
try {
$data->dump($this);
$this->dumpLine(-1);
if ($returnDump) {
$result = stream_get_contents($output, -1, 0);
fclose($output);
* {@inheritdoc}
*/
public function dump(Data $data, $output = null, array $extraDisplayOptions = [])
{
$this->extraDisplayOptions = $extraDisplayOptions;
$result = parent::dump($data, $output);
$this->dumpId = 'sf-dump-'.mt_rand();
return $result;
}
// Symfony VarDumper 2.6 Caster class dont exist.
} else {
$cloneVar = $this->getCloner()->cloneVar($value);
}
$dumper->dump(
$cloneVar,
$this->htmlDumperOutput
);
$output = $this->htmlDumperOutput->getOutput();
$numFrames = count($frame->getArgs());
if ($numFrames > 0) {
$html = '<ol class="linenums">';
foreach ($frame->getArgs() as $j => $frameArg) {
$html .= '<li>'. $this->dump($frameArg) .'</li>';
}
$html .= '</ol>';
}
return $html;
><code class="language-php"><?php echo $tpl->escape($code) ?></code></pre>
<?php endif ?>
<?php endif ?>
<?php $frameArgs = $tpl->dumpArgs($frame); ?>
<?php if ($frameArgs): ?>
<div class="frame-file">
Arguments
</div>
<div id="frame-code-args-<?=$i?>" class="code-block frame-args">
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
/**
* Sets the variables to be passed to all templates rendered
if ($additionalVariables !== null) {
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
<?php $tpl->render($frame_code) ?>
<?php $tpl->render($env_details) ?>
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
/**
* Sets the variables to be passed to all templates rendered
if ($additionalVariables !== null) {
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
<div class="panel details-container cf">
<?php $tpl->render($panel_details) ?>
</div>
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
/**
* Sets the variables to be passed to all templates rendered
if ($additionalVariables !== null) {
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
<div class="Whoops container">
<div class="stack-container">
<?php $tpl->render($panel_left_outer) ?>
<?php $tpl->render($panel_details_outer) ?>
</div>
</div>
<script data-manual><?php echo $prismJs ?></script>
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
/**
* Sets the variables to be passed to all templates rendered
if ($additionalVariables !== null) {
$variables = array_replace($variables, $additionalVariables);
}
call_user_func(function () {
extract(func_get_arg(1));
require func_get_arg(0);
}, $template, $variables);
}
$plainTextHandler->setException($this->getException());
$plainTextHandler->setInspector($this->getInspector());
$vars["preface"] = "<!--\n\n\n" . $this->templateHelper->escape($plainTextHandler->generateResponse()) . "\n\n\n\n\n\n\n\n\n\n\n-->";
$this->templateHelper->setVariables($vars);
$this->templateHelper->render($templateFile);
return Handler::QUIT;
}
/**
// The HandlerInterface does not require an Exception passed to handle()
// and neither of our bundled handlers use it.
// However, 3rd party handlers may have already relied on this parameter,
// and removing it would be possibly breaking for users.
$handlerResponse = $handler->handle($exception);
// Collect the content type for possible sending in the headers.
$handlerContentType = method_exists($handler, 'contentType') ? $handler->contentType() : null;
if (in_array($handlerResponse, [Handler::LAST_HANDLER, Handler::QUIT])) {
$whoops->appendHandler($this->whoopsHandler());
$whoops->writeToOutput(false);
$whoops->allowQuit(false);
})->handleException($e);
}
/**
* Get the Whoops handler for the application.
*
*/
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
*
* @throws \Throwable
*/
public function render($request, Throwable $exception)
{
return parent::render($request, $exception);
}
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
* @param \Throwable $e
* @return void
*/
protected function renderHttpResponse(Throwable $e)
{
$this->getExceptionHandler()->render($this->app['request'], $e)->send();
}
/**
* Handle the PHP shutdown event.
*
}
if ($this->app->runningInConsole()) {
$this->renderForConsole($e);
} else {
$this->renderHttpResponse($e);
}
}
/**
* Render an exception to the console.
* @return void
*/
public function handleShutdown()
{
if (! is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Create a new fatal error instance from an error array.
ErrorException
|
---|
ErrorException: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead at /home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:963 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at mb_convert_encoding() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:963) at Symfony\Component\VarDumper\Dumper\HtmlDumper->dumpLine() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/CliDumper.php:224) at Symfony\Component\VarDumper\Dumper\CliDumper->dumpString() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:799) at Symfony\Component\VarDumper\Dumper\HtmlDumper->dumpString() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Cloner/Data.php:418) at Symfony\Component\VarDumper\Cloner\Data->dumpItem() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Cloner/Data.php:321) at Symfony\Component\VarDumper\Cloner\Data->dump() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:137) at Symfony\Component\VarDumper\Dumper\AbstractDumper->dump() (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:140) at Symfony\Component\VarDumper\Dumper\HtmlDumper->dump() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:175) at Whoops\Util\TemplateHelper->dump() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:208) at Whoops\Util\TemplateHelper->dumpArgs() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php:40) at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php') (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250) at Whoops\Util\TemplateHelper->Whoops\Util\{closure}() at call_user_func() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248) at Whoops\Util\TemplateHelper->render() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php:1) at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php') (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250) at Whoops\Util\TemplateHelper->Whoops\Util\{closure}() at call_user_func() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248) at Whoops\Util\TemplateHelper->render() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php:2) at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php') (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250) at Whoops\Util\TemplateHelper->Whoops\Util\{closure}() at call_user_func() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248) at Whoops\Util\TemplateHelper->render() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php:24) at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php') (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250) at Whoops\Util\TemplateHelper->Whoops\Util\{closure}() at call_user_func() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248) at Whoops\Util\TemplateHelper->render() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php:295) at Whoops\Handler\PrettyPageHandler->handle() (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Run.php:370) at Whoops\Run->handleException() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:364) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithWhoops() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:343) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render() (/home/lelamic/public_html/project/app/Exceptions/Handler.php:56) at App\Exceptions\Handler->render() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:119) at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:96) at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException() (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130) at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown() |