V
V
vladislav9972020-09-24 15:23:50
PHP
vladislav997, 2020-09-24 15:23:50

Why did cron break after connecting the vendor and use?

Tell me, why did the cron break after connecting the vendor and use? In the sense it stopped working

Namely, after adding these lines:

require '/var/www/project/vendor/autoload.php';

use Aws\Ses\SesClient;
use Aws\Exception\AwsException;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
ggrachdev, 2020-09-24
@ggrachdev

Turn on error output in PHP and you need to debug what error occurs.
I assume that Aws\Ses\SesClient and Aws\Exception\AwsException are not found, are these your classes/interfaces/traits self-written?
Try setting up composer.json and run the command:
$ php composer.phar dump-autoload -o
To make the autoloader pick up your classes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question