Jump to content

Adding a Symfony bundle without error


Recommended Posts

Posted (edited)

Hi all,

I struggle to add a Synfony bundle to Prestashop:

https://github.com/openai-php/symfony


The best I have is as following:

(I did not find any other way to install the bundle without error)

Quote

$ git clone --depth 1 [email protected]:PrestaShop/PrestaShop.git
$ composer install
$ composer update
$ composer clear-cache
$ composer require openai-php/symfony


Then I do a install, and I have this error:

 

Fatal error: Declaration of PrestaShopBundle\Service\Log\LogHandler::write(array $record): void must be compatible with Monolog\Handler\AbstractProcessingHandler::write(Monolog\LogRecord $record): void in /home/admin/Code/prestashop.lan/src/PrestaShopBundle/Service/Log/LogHandler.php on line 56

image.thumb.png.bcdae69ff518fb058161fde648e6d02d.png



Do someone could help me to have a clean installation with this bundle installed?

Regards,
F

 

Edited by fauxhandle
Edit command lines (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...