Skip to content

Commit

Permalink
Fixing wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Oct 1, 2021
1 parent 5e41c34 commit c145919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DI/JsonApiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function loadConfiguration(): void
$builder->addDefinition($this->prefix('schemas.container'), new DI\Definitions\ServiceDefinition())
->setType(JsonApi\JsonApiSchemaContainer::class);

if (class_exists('\IPub\DoctrineCrud\Mapping\Annotation\Crud'), new DI\Definitions\ServiceDefinition()) {
$builder->addDefinition($this->prefix('helpers.crudReader'))
if (class_exists('\IPub\DoctrineCrud\Mapping\Annotation\Crud')) {
$builder->addDefinition($this->prefix('helpers.crudReader'), new DI\Definitions\ServiceDefinition())
->setType(Helpers\CrudReader::class);
}
}
Expand Down

0 comments on commit c145919

Please sign in to comment.