Added basic blog functionality

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-09-04 13:09:32 +02:00
parent ea325aab7f
commit 5bcd9f079b
17 changed files with 412 additions and 21 deletions

View File

@@ -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;
}
}

View File

@@ -5,4 +5,4 @@ services:
gergely_polonkai_geshi.geshi_highlighter:
class: %gergely_polonkai_geshi.geshi_highlighter.class%
tags:
- { name: 'twig.extension' }
- { name: 'twig.extension' }

View File

@@ -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';
}
}