php - InvalidArgumentException: The service definition "my.markdown.parser" does not exist -
i try instal bundle:knplabs/knpmarkdownbundle have error :
invalidargumentexception: service definition "my.markdown.parser" not exist.
this section of requires :
"php": ">=5.3.3", "symfony/symfony": "~2.4", "doctrine/orm": "~2.2,>=2.2.3", "doctrine/doctrine-bundle": "1.3.*@dev", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.4", "sensio/distribution-bundle": "~2.3", "sensio/framework-extra-bundle": "~3.0", "sensio/generator-bundle": "~2.3", "incenteev/composer-parameter-handler": "~2.0", "jms/di-extra-bundle": "dev-master", "doctrine/doctrine-fixtures-bundle": "2.2.*@dev", "doctrine/data-fixtures": "1.0.*@dev", "stof/doctrine-extensions-bundle": "~1.1@dev", "knplabs/knp-markdown-bundle": "~1.3"
and section of appkernel :
$bundles = array( //.... new jms\diextrabundle\jmsdiextrabundle($this), new jms\aopbundle\jmsaopbundle(), new knp\bundle\markdownbundle\knpmarkdownbundle(), new stof\doctrineextensionsbundle\stofdoctrineextensionsbundle(), );
this part used bundle :
<i>le {{ article.date|date('d/m/y') }}, par {{ article.auteur|markdown }}.</i> {# on affiche les competence éventuelles #} {% if article.articlecompetences.count > 0 %} <i> competences : {% categorie in article.articlecompetences %} {{ categorie.competence.nom }}{% if not loop.last %}, {% endif %} {% endfor %} </i> {% endif %}
unless intending configure bundle use own parser implementation, shouldn't have add bundle.
knp_markdown: parser: service: my.markdown.parser
just remove it, , think default use knp\bundle\markdownbundle\parser\markdownparser
parser.
Comments
Post a Comment