Added basic blog functionality
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -23,7 +23,6 @@ class Configuration implements ConfigurationInterface
|
||||
// Here you should define the parameters that are allowed to
|
||||
// configure your bundle. See the documentation linked above for
|
||||
// more information on that topic.
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
@@ -5,4 +5,4 @@ services:
|
||||
gergely_polonkai_geshi.geshi_highlighter:
|
||||
class: %gergely_polonkai_geshi.geshi_highlighter.class%
|
||||
tags:
|
||||
- { name: 'twig.extension' }
|
||||
- { name: 'twig.extension' }
|
||||
|
@@ -36,10 +36,12 @@ class GeshiHighlight extends \Twig_Extension
|
||||
$this->geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
|
||||
$this->geshi->enable_keyword_links(false);
|
||||
$this->geshi->enable_classes();
|
||||
|
||||
return $this->geshi->parse_code();
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
public function getName()
|
||||
{
|
||||
return 'geshi_highlighter';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user