Issues (20)

examples/merchant.php (1 issue)

Labels
Severity
1
<?php
2
namespace Alns\Main\Cli\Export\Google;
3
4
use App\BxConsole\Annotations\Agent;
5
use App\BxConsole\Annotations\Command;
6
use App\BxConsole\BxCommand;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * @Command(
12
 *     name="export:google-merchant",
13
 *     description="Google Merchant export"
14
 * )
15
 * @Agent(
16
 *     period=10800
17
 * )
18
 */
19
class Merchant extends BxCommand {
20
21
    protected function execute(InputInterface $input, OutputInterface $output)
22
    {
23
        /*
24
         * Если используете https://github.com/itrukhin/bxmonolog
25
         */
26
        $this->setLogger(new \App\Log('export/google'));
0 ignored issues
show
The type App\Log was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
27
28
        //TODO: build and write merchant XML
29
    }
30
}