Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependency on a non-existent service "templating.engine.smarty" on composer update #41

Open
sergeda opened this issue Jun 16, 2014 · 6 comments

Comments

@sergeda
Copy link

sergeda commented Jun 16, 2014

I've installed SmartyBundle using composer. Everything went fine.
But now on composer update I've got:
"templating" has a dependency on a non-existent service "templating.engine.smarty"

@vitorbrandao
Copy link
Member

Hello @sergeda. Please post the smarty-bundle and minimum-stability lines you are using on composer.json and composer.lock.

@sergeda
Copy link
Author

sergeda commented Jun 16, 2014

json:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.5.*",
"noiselabs/smarty-bundle": "dev-master"

lock:
{
"name": "noiselabs/smarty-bundle",
"version": "dev-master",
"target-dir": "NoiseLabs/Bundle/SmartyBundle",
"source": {
"type": "git",
"url": "https://github.com/noiselabs/SmartyBundle.git",
"reference": "a0c535b55536e08adf80ebaaf8b2d57a5b543438"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/noiselabs/SmartyBundle/zipball/a0c535b55536e08adf80ebaaf8b2d57a5b543438",
"reference": "a0c535b55536e08adf80ebaaf8b2d57a5b543438",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"smarty/smarty": "3.1.*@stable",
"symfony/framework-bundle": "~2.1"
},
"require-dev": {
"symfony/assetic-bundle": "~2.0",
"symfony/security": "~2.1",
"symfony/yaml": "~2.1"
},
"suggest": {
"knplabs/knp-menu-bundle": "Smarty3 integration with KnpMenu (object oriented menus)",
"liip/theme-bundle": "Integration of Twitter Bootstrap into Symfony2 (themes)",
"mopa/bootstrap-bundle": "Integration of Twitter Bootstrap into Symfony2",
"mopa/bootstrap-sandbox-bundle": "Integration of Twitter Bootstrap into Symfony2 (extra)",
"symfony/assetic-bundle": "Assetic support in Smarty templates"
},
"type": "symfony-bundle",
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev"
}
},
"autoload": {
"psr-0": {
"NoiseLabs\Bundle\SmartyBundle": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0"
],
"authors": [
{
"name": "Community contributions",
"homepage": "https://github.com/noiselabs/SmartyBundle/contributors"
},
{
"name": "Vítor Brandão",
"email": "[email protected]",
"homepage": "http://noiselabs.org"
}
],
"description": "This Symfony2 bundle provides integration for the Smarty3 template engine.",
"homepage": "http://smartybundle.noiselabs.org",
"keywords": [
"noiselabs",
"smarty",
"symfony",
"templating"
],
"time": "2014-05-20 10:03:08"
},

"minimum-stability": "stable",
"stability-flags": {
    "noiselabs/smarty-bundle": 20
}

@vitorbrandao
Copy link
Member

@sergeda have you enabled it in AppKernel.php?

@sergeda
Copy link
Author

sergeda commented Jun 16, 2014

@noisebleed Yes, I do. And actually Bundle does work. Just Composer shows this error.

@vitorbrandao
Copy link
Member

Hmm... maybe it has something to do with Symfony-2.5 (haven't tested yet).

If you run app/console container:debug do you see the templating.engine.smarty service?

$ php app/console container:debug | grep "templating\.engine\.smarty"
smarty_engine                 n/a       alias for "templating.engine.smarty"
templating.engine.smarty      container NoiseLabs\Bundle\SmartyBundle\SmartyEngine

@sergeda
Copy link
Author

sergeda commented Jun 16, 2014

Yes, it is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants