Closed prappo closed 4 years ago
Hey, you probably have to pass cache instance (e.g. SymfonyCache) to the constructor of TemplateEngine
Example code please
composer require symfony/cache
use BotMan\BotMan\Cache\SymfonyCache; use Symfony\Component\Cache\Adapter\FilesystemAdapter;
$cache = new SymfonyCache(new FilesystemAdapter('my_cache', 120, storage_path('app'))); $template = file_get_contents(app_path('scenario.json')); $botman = BotManFactory::create(TemplateEngine::getConfig($template), $cache, null, new DBStorage()); $engine = new TemplateEngine($template, $botman, $cache);
Thank you solved the issue.
Hi there, Thank you for your awesome project. I tried to use your package on Botman studio . But there is an error. Here is full error message