kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Missing Service #65

Open prodevcon opened 9 years ago

prodevcon commented 9 years ago

You have requested a non-existent service "kayue_wordpress". Did you mean one of these: "kayue_wordpress.table_prefix.subscriber", "kayue_wordpress.blog.manager", "kayue_wordpress.shortcode_chain", "kayue_wordpress.shortcode.caption", "kayue_wordpress.shortcode.gallery", "kayue_wordpress.option.manager", "kayue_wordpress.post.manager", "kayue_wordpress.post_meta.manager", "kayue_wordpress.attachment.manager", "kayue_wordpress.term.manager", "kayue_wordpress.user_meta.manager", "kayue_wordpress.comment.manager", "kayue_wordpress.twig.wordpress"?

Can you help please? Best regards

kayue commented 9 years ago

It should be here, are you using the latest version?

https://github.com/kayue/KayueWordpressBundle/blob/master/Resources/config/services.yml#L15

prodevcon commented 9 years ago

HI, thx for the response.

I used composer like you wrote. with version 1.2@dev

I see this file, but do I need to include it somewhere? This I can not find in explanations.

Also one more thing to mention:

In config YAML "#Doctrine connection to use. Default is 'default'." connection: 'default'

this "connection" key is not allowed and you didn't allow it in: DependencyInjection/Configuration.php

        ->scalarNode('site_url')->defaultValue(null)->end()
        ->scalarNode('logged_in_key')->defaultValue(null)->end()
        ->scalarNode('logged_in_salt')->defaultValue(null)->end()
        ->scalarNode('cookie_path')->defaultValue('/')->end()
        ->scalarNode('cookie_domain')->defaultValue(null)->end()
        ->scalarNode('table_prefix')->defaultValue('wp_')->end()
        ->scalarNode('connection')->defaultValue('default')->end()

The rest of the keys have no problems

Best regards

kayue commented 9 years ago

Can you try changing the version to dev-master?

prodevcon commented 9 years ago

Ok I switched.

Now I have the following error:

Parse Error: syntax error, unexpected '['

In vendor/kayue/kayue-wordpress-bundle/Kayue/WordpressBundle/Twig/Extension/WordpressExtension.php at line 62 -

59        public function getFilters()
60        {
61            return array(
62                new Twig_SimpleFilter('wp_autop', [$this, 'wpautop']),
63                new Twig_SimpleFilter('wp_texturize', [$this, 'wptexturize']),
64                new Twig_SimpleFilter('wp_shortcode', [$this, 'doShortcode']),
65         );
kayue commented 9 years ago

Sorry I think you need PHP 5.5 to support the [] syntax :(

prodevcon commented 9 years ago

Ok, thank you.