Skip to content

Commit

Permalink
Merge pull request #3 from KnpLabs/chore/update-root-namespace
Browse files Browse the repository at this point in the history
chore: update the root namespace from Knp to KnpLabs
  • Loading branch information
Antoine Lelaisant authored Oct 31, 2022
2 parents af6758e + 806297c commit d665c2f
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 26 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Knp\\JsonSchemaBundle\\": "src/"
"KnpLabs\\JsonSchemaBundle\\": "src/"
}
},
"authors": [
Expand All @@ -17,7 +17,7 @@
],
"require": {
"php": ">=8.0",
"knplabs/php-json-schema": ">=0.0.4",
"knplabs/php-json-schema": "~0.1.0",
"zircote/swagger-php": ">=4.4",
"symfony/http-kernel": ">=6.0",
"symfony/dependency-injection": ">=6.0",
Expand Down
10 changes: 5 additions & 5 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Knp\JsonSchema\Collection;
use Knp\JsonSchema\JsonSchemaInterface;
use Knp\JsonSchemaBundle\RequestHandler;
use Knp\JsonSchemaBundle\Validator\SwaggestValidator;
use KnpLabs\JsonSchema\Collection;
use KnpLabs\JsonSchema\JsonSchemaInterface;
use KnpLabs\JsonSchemaBundle\RequestHandler;
use KnpLabs\JsonSchemaBundle\Validator\SwaggestValidator;

return function(ContainerConfigurator $configurator) {
$services = $configurator->services()
Expand All @@ -19,7 +19,7 @@
;

$services->set(SwaggestValidator::class);
$services->alias('Knp\JsonSchema\Validator', SwaggestValidator::class);
$services->alias('KnpLabs\JsonSchema\Validator', SwaggestValidator::class);

$services->set(Collection::class)
->arg('$schemas', tagged_iterator('knp.json_schema'))
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/JsonSchemaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle\DependencyInjection;
namespace KnpLabs\JsonSchemaBundle\DependencyInjection;

use Knp\JsonSchema\JsonSchemaInterface;
use KnpLabs\JsonSchema\JsonSchemaInterface;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/JsonSchemaException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle\Exception;
namespace KnpLabs\JsonSchemaBundle\Exception;

use Knp\JsonSchema\Validator\Errors;
use KnpLabs\JsonSchema\Validator\Errors;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;

class JsonSchemaException extends BadRequestHttpException
Expand Down
4 changes: 2 additions & 2 deletions src/JsonSchemaBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle;
namespace KnpLabs\JsonSchemaBundle;

use Knp\JsonSchemaBundle\DependencyInjection\JsonSchemaExtension;
use KnpLabs\JsonSchemaBundle\DependencyInjection\JsonSchemaExtension;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;

Expand Down
2 changes: 1 addition & 1 deletion src/OpenApi/Annotation/JsonSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle\OpenApi\Annotation;
namespace KnpLabs\JsonSchemaBundle\OpenApi\Annotation;

use OpenApi\Annotations\Property;
use OpenApi\Annotations\Schema;
Expand Down
3 changes: 1 addition & 2 deletions src/OpenApi/Attributes/JsonSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle\OpenApi\Attributes;
namespace KnpLabs\JsonSchemaBundle\OpenApi\Attributes;

use OpenApi\Attributes\Property;
use OpenApi\Attributes\Schema;
use OpenApi\Generator;

class JsonSchema extends Schema
{
Expand Down
10 changes: 5 additions & 5 deletions src/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle;
namespace KnpLabs\JsonSchemaBundle;

use Knp\JsonSchema\Collection;
use Knp\JsonSchema\JsonSchemaInterface;
use Knp\JsonSchema\Validator;
use Knp\JsonSchemaBundle\Exception\JsonSchemaException;
use KnpLabs\JsonSchema\Collection;
use KnpLabs\JsonSchema\JsonSchemaInterface;
use KnpLabs\JsonSchema\Validator;
use KnpLabs\JsonSchemaBundle\Exception\JsonSchemaException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException;

Expand Down
10 changes: 5 additions & 5 deletions src/Validator/SwaggestValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Knp\JsonSchemaBundle\Validator;
namespace KnpLabs\JsonSchemaBundle\Validator;

use Knp\JsonSchema\JsonSchemaInterface;
use Knp\JsonSchema\Validator;
use Knp\JsonSchema\Validator\Errors;
use Knp\JsonSchema\Validator\Error as KnpJsonSchemaError;
use KnpLabs\JsonSchema\JsonSchemaInterface;
use KnpLabs\JsonSchema\Validator;
use KnpLabs\JsonSchema\Validator\Errors;
use KnpLabs\JsonSchema\Validator\Error as KnpJsonSchemaError;
use Swaggest\JsonSchema\Exception\Error;
use Swaggest\JsonSchema\Exception\LogicException;
use Swaggest\JsonSchema\InvalidValue;
Expand Down

0 comments on commit d665c2f

Please sign in to comment.