time-ago-in-words icon indicating copy to clipboard operation
time-ago-in-words copied to clipboard

Missing dependencies?

Open enygma opened this issue 9 years ago • 2 comments

I was trying to use this outside of a Symfony application and received this message as there are missing dependencies:

PHP Fatal error:  Class 'Symfony\\Component\\Form\\Extension\\Core\\DataTransformer\\DateTimeToStringTransformer' not found in /private/var/www/phpctf/vendor/salavert/time-ago-in-words/src/Salavert/Twig/Extension/TimeAgoExtension.php on line 65

Is this something that can be included or does it open a whole can of worms for other dependencies?

enygma avatar Nov 11 '15 13:11 enygma

You should include Form Component from Symfony 2.x branch

muratbeser avatar Dec 03 '15 20:12 muratbeser

The required symfony version should be added to composer.json to avoid such errors.

mvhirsch avatar Oct 07 '22 07:10 mvhirsch