Skip to content

Commit

Permalink
Merge pull request #21 from bookboon/hotfix/added-return-type
Browse files Browse the repository at this point in the history
feat: add return type and increase req version of jsonld-client
  • Loading branch information
robo220 authored Jul 12, 2022
2 parents 34f02c1 + 96cbc39 commit 3b01aef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ApiBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Bookboon\ApiBundle;

use Bookboon\ApiBundle\DependencyInjection\BookboonApiExtension;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class ApiBundle extends Bundle
{
public function getContainerExtension()
public function getContainerExtension() : ?ExtensionInterface
{
return new BookboonApiExtension();
}
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/BookboonApiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('services.yml');
}

public function getAlias()
public function getAlias() : string
{
return 'bookboonapi';
}

public function getXsdValidationBasePath()
public function getXsdValidationBasePath() : string
{
return 'http://bookboon.com/schema/dic/' . $this->getAlias();
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"symfony/http-kernel": "^5.0|^6.0",
"symfony/config": "^5.0|^6.0",
"symfony/cache": "^5.0|^6.0",
"bookboon/jsonld-client": "^2.4",
"bookboon/jsonld-client": "^2.6",
"bookboon/api-models-php": "^1.2",
"bookboon/oauth2-client-php": "^1.0"
},
Expand Down

0 comments on commit 3b01aef

Please sign in to comment.