Open sergeda opened 10 years ago
Hello @sergeda. Please post the smarty-bundle
and minimum-stability
lines you are using on composer.json
and composer.lock
.
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
}
@sergeda have you enabled it in AppKernel.php?
@noisebleed Yes, I do. And actually Bundle does work. Just Composer shows this error.
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
Yes, it is there.
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"