thecodingmachine /
DBFaker
| 1 | <?php |
||
| 2 | namespace DBFaker; |
||
| 3 | |||
| 4 | use DBFaker\Generators\GeneratorFactory; |
||
|
0 ignored issues
–
show
|
|||
| 5 | use Doctrine\DBAL\Connection; |
||
| 6 | use Mouf\Database\SchemaAnalyzer\SchemaAnalyzer; |
||
|
0 ignored issues
–
show
The type
Mouf\Database\SchemaAnalyzer\SchemaAnalyzer 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 7 | use Symfony\Component\Console\Command\Command; |
||
| 8 | use Symfony\Component\Console\Input\InputInterface; |
||
| 9 | use Symfony\Component\Console\Output\OutputInterface; |
||
| 10 | |||
| 11 | class DBFakerCommand extends Command |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var DBFaker |
||
| 16 | */ |
||
| 17 | private $dbFaker; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * DBFaker constructor. |
||
| 21 | * @param DBFaker $faker |
||
| 22 | */ |
||
| 23 | public function __construct(DBFaker $faker) |
||
| 24 | { |
||
| 25 | parent::__construct(); |
||
| 26 | $this->dbFaker = $faker; |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function configure() |
||
| 30 | { |
||
| 31 | $this |
||
| 32 | ->setName('dbfaker:fake-data') |
||
| 33 | ->setDescription('Generates fake data related to database\'s structure and populates the database') |
||
| 34 | ->setHelp('This command allows you to create a user...'); |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 38 | { |
||
| 39 | //TODO : how to pass output for detailed logging ? |
||
| 40 | $this->dbFaker->fakeDB(); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths