Fix small issues
This commit is contained in:
parent
e04335abeb
commit
4c7f3816f8
@ -19,5 +19,7 @@ class ClearCache extends SymfonyCommand
|
|||||||
$output->writeln("Clearing cache at '" . Cache::getDirectory() ."'");
|
$output->writeln("Clearing cache at '" . Cache::getDirectory() ."'");
|
||||||
Cache::clear();
|
Cache::clear();
|
||||||
$output->writeln("<info>Cache cleared</info>");
|
$output->writeln("<info>Cache cleared</info>");
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,8 @@ class Generate extends DauxCommand
|
|||||||
|
|
||||||
// Generate the documentation
|
// Generate the documentation
|
||||||
$daux->getGenerator()->generateAll($input, $output, $width);
|
$daux->getGenerator()->generateAll($input, $output, $width);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prepareProcessor(Daux $daux, InputInterface $input, OutputInterface $output, $width)
|
protected function prepareProcessor(Daux $daux, InputInterface $input, OutputInterface $output, $width)
|
||||||
|
@ -49,5 +49,7 @@ class Serve extends DauxCommand
|
|||||||
echo "Daux development server started on http://{$host}:{$port}/\n";
|
echo "Daux development server started on http://{$host}:{$port}/\n";
|
||||||
|
|
||||||
passthru("{$binary} -S {$host}:{$port} {$base}/index.php");
|
passthru("{$binary} -S {$host}:{$port} {$base}/index.php");
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ class LinkRenderer implements InlineRendererInterface, ConfigurationAwareInterfa
|
|||||||
public function __construct($daux)
|
public function __construct($daux)
|
||||||
{
|
{
|
||||||
$this->daux = $daux;
|
$this->daux = $daux;
|
||||||
|
$this->parent = new \League\CommonMark\Inline\Renderer\LinkRenderer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -69,7 +70,6 @@ class LinkRenderer implements InlineRendererInterface, ConfigurationAwareInterfa
|
|||||||
protected function isExternalUrl($url)
|
protected function isExternalUrl($url)
|
||||||
{
|
{
|
||||||
return preg_match('#^(?:[a-z]+:)?//|^mailto:#', $url);
|
return preg_match('#^(?:[a-z]+:)?//|^mailto:#', $url);
|
||||||
$this->parent = new \League\CommonMark\Inline\Renderer\LinkRenderer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,5 +29,7 @@ class ExtensionMimeTypeGuesser implements MimeTypeGuesserInterface
|
|||||||
if ($extension == "js") {
|
if ($extension == "js") {
|
||||||
return "application/javascript";
|
return "application/javascript";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user