Skip to content

Commit

Permalink
Merge pull request #3 from msmakouz/bugfix/nyholm-bridge
Browse files Browse the repository at this point in the history
Changing Dto to Model in namespaces, adding nyholm-bridge
  • Loading branch information
butschster authored Jul 26, 2022
2 parents 8331f94 + d685824 commit e379940
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"require-dev": {
"mockery/mockery": "^1.5",
"spiral/framework": "3.0.x-dev",
"spiral/http": "^3.0",
"spiral/nyholm-bridge": "^1.2",
"spiral/attributes": "^2.8 || ^3.0",
"phpunit/phpunit": "^9.5",
"spiral/testing": "^2.0",
"vimeo/psalm": "^4.9"
Expand Down
4 changes: 2 additions & 2 deletions src/LaravelValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Spiral\Validation\Laravel;

use Illuminate\Contracts\Validation\Factory;
use Spiral\Filters\Filter;
use Spiral\Filters\FilterBag;
use Spiral\Filters\Model\Filter;
use Spiral\Filters\Model\FilterBag;
use Spiral\Validation\ValidationInterface;
use Spiral\Validation\ValidatorInterface;

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

use Illuminate\Contracts\Validation\Factory;
use Illuminate\Contracts\Validation\Validator;
use Spiral\Filters\FilterBag;
use Spiral\Filters\Model\FilterBag;
use Spiral\Validation\ValidatorInterface;

class LaravelValidator implements ValidatorInterface
Expand Down
6 changes: 3 additions & 3 deletions tests/app/Filters/CreatePostFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Spiral\Validation\Laravel\Tests\App\Filters;

use Spiral\Filters\Attribute\Input\Post;
use Spiral\Filters\Filter;
use Spiral\Filters\FilterDefinitionInterface;
use Spiral\Filters\HasFilterDefinition;
use Spiral\Filters\Model\Filter;
use Spiral\Filters\Model\FilterDefinitionInterface;
use Spiral\Filters\Model\HasFilterDefinition;
use Spiral\Validation\Laravel\FilterDefinition;
use Spiral\Validation\Laravel\Attribute\Input\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
Expand Down
6 changes: 3 additions & 3 deletions tests/app/Filters/FilterWithArrayMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Spiral\Validation\Laravel\Tests\App\Filters;

use Spiral\Filters\Filter;
use Spiral\Filters\FilterDefinitionInterface;
use Spiral\Filters\HasFilterDefinition;
use Spiral\Filters\Model\Filter;
use Spiral\Filters\Model\FilterDefinitionInterface;
use Spiral\Filters\Model\HasFilterDefinition;
use Spiral\Validation\Laravel\FilterDefinition;

final class FilterWithArrayMapping extends Filter implements HasFilterDefinition
Expand Down
6 changes: 3 additions & 3 deletions tests/app/Filters/SimpleFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Spiral\Validation\Laravel\Tests\App\Filters;

use Spiral\Filters\Attribute\Input\Post;
use Spiral\Filters\Filter;
use Spiral\Filters\FilterDefinitionInterface;
use Spiral\Filters\HasFilterDefinition;
use Spiral\Filters\Model\Filter;
use Spiral\Filters\Model\FilterDefinitionInterface;
use Spiral\Filters\Model\HasFilterDefinition;
use Spiral\Validation\Laravel\FilterDefinition;

final class SimpleFilter extends Filter implements HasFilterDefinition
Expand Down
6 changes: 3 additions & 3 deletions tests/src/Functional/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace Spiral\Validation\Laravel\Tests\Functional;

use Spiral\Attributes\Bootloader\AttributesBootloader;
use Spiral\Boot\Environment;
use Spiral\Boot\EnvironmentInterface;
use Spiral\Bootloader\Attributes\AttributesBootloader;
use Spiral\Bootloader\Security\FiltersBootloader;
use Spiral\Core\Container;
use Spiral\Http\Bootloader\DiactorosBootloader;
use Spiral\Nyholm\Bootloader\NyholmBootloader;
use Spiral\Testing\TestableKernelInterface;
use Spiral\Validation\Bootloader\ValidationBootloader;
use Spiral\Validation\Laravel\Bootloader\ValidatorBootloader;
Expand All @@ -25,7 +25,7 @@ public function defineBootloaders(): array
{
return [
AttributesBootloader::class,
DiactorosBootloader::class,
NyholmBootloader::class,
FiltersBootloader::class,
ValidationBootloader::class,
ValidatorBootloader::class,
Expand Down

0 comments on commit e379940

Please sign in to comment.