-3
habe ich installiert symfony 2.8 und wenn ich die app_dev.php Datei ausführen bekomme ich dieseSymfony Syntaxfehler, unerwartete ‚{‘
Whoops, sieht aus wie etwas schief gelaufen ist.
FatalErrorException in classes.php Linie 6130: Parse-Fehler: Syntaxfehler, unerwartete '{'
Bitte sagen Sie mir, wie es
Hier 10 Zeilen vor
public function hasRecordThatMatches($regex, $level)
{
return $this->hasRecordThatPasses(function ($rec) use ($regex) {
return preg_match($regex, $rec['message']) > 0;
}, $level);
}
public function hasRecordThatPasses($predicate, $level)
{
if (!is_callable($predicate)) {
throw new \InvalidArgumentException("Expected a callable for hasRecordThatSucceeds");
}
if (!isset($this->recordsByLevel[$level])) {
return false;
}
foreach ($this->recordsByLevel[$level] as $i => $rec) {
if (call_user_func($predicate, $rec, $i)) {
return true;
}
}
return false;
}
protected function write(array $record)
{
$this->recordsByLevel[$record['level']][] = $record;
$this->records[] = $record;
}
public function __call($method, $args)
{
if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) {
$genericMethod = $matches[1] . ('Records'!== $matches[3] ?'Record':'') . $matches[3];
$level = constant('Monolog\Logger::'. strtoupper($matches[2]));
if (method_exists($this, $genericMethod)) {
$args[] = $level;
return call_user_func_array(array($this, $genericMethod), $args);
}
}
throw new \BadMethodCallException('Call to undefined method '. get_class($this) .'::'. $method .'()');
}
}
}
namespace Monolog
Sie haben nichts darin bearbeitet? – Arcv
NOPE es kommt mit Rahmen – Kimigx
können Sie den Code der Datei zeigen? – ThisGuyHasTwoThumbs