noiselabs / SmartyBundle

Smarty3 template engine bundle for Symfony
http://smartybundle.readthedocs.io/
GNU Lesser General Public License v3.0
51 stars 36 forks source link

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

Open sergeda opened 10 years ago

sergeda commented 10 years ago

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 commented 10 years ago

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

sergeda commented 10 years ago

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": "vitor@noiselabs.org", "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 commented 10 years ago

@sergeda have you enabled it in AppKernel.php?

sergeda commented 10 years ago

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

vitorbrandao commented 10 years ago

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 commented 10 years ago

Yes, it is there.