Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Sep 5, 2024
1 parent c12b9ff commit c69f4d4
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 27 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"yiisoft/active-record": "dev-master",
"yiisoft/aliases": "^3.0",
"yiisoft/arrays": "^2.1|^3.0",
"yiisoft/csrf": "^2.1.1",
"yiisoft/data-response": "^2.0",
"yiisoft/db": "*",
"yiisoft/friendly-exception": "^1.1",
Expand All @@ -48,7 +49,7 @@
"yiisoft/json": "^1.0",
"yiisoft/router": "^3.0",
"yiisoft/strings": "^2.1",
"yiisoft/validator": "^1.0",
"yiisoft/validator": "^2.0",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-middleware": "^1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function diff(
private function createErrorResponse(InvalidGeneratorCommandException $e): DataResponse
{
return $this->responseFactory->createResponse(
['errors' => $e->getResult()->getErrorMessagesIndexedByAttribute()],
['errors' => $e->getResult()->getErrorMessagesIndexedByProperty()],
Status::UNPROCESSABLE_ENTITY
);
}
Expand Down
5 changes: 0 additions & 5 deletions src/Validator/ClassExistsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
final class ClassExistsRule implements RuleInterface
{
public function getName(): string
{
return 'gii_class_exists';
}

public function getHandler(): string|RuleHandlerInterface
{
return ClassExistsHandler::class;
Expand Down
5 changes: 0 additions & 5 deletions src/Validator/NewClassRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
final class NewClassRule implements RuleInterface
{
public function getName(): string
{
return 'gii_new_class';
}

public function getHandler(): string|RuleHandlerInterface
{
return NewClassHandler::class;
Expand Down
5 changes: 0 additions & 5 deletions src/Validator/ReservedKeywordRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
final class ReservedKeywordRule implements RuleInterface
{
public function getName(): string
{
return 'gii_reserved_keyword';
}

public function getHandler(): string|RuleHandlerInterface
{
return ReservedKeywordHandler::class;
Expand Down
5 changes: 0 additions & 5 deletions src/Validator/TableExistsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
final class TableExistsRule implements RuleInterface
{
public function getName(): string
{
return 'gii_table_exists';
}

public function getHandler(): string|RuleHandlerInterface
{
return TableExistsHandler::class;
Expand Down
5 changes: 0 additions & 5 deletions src/Validator/TemplateRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
final class TemplateRule implements RuleInterface
{
public function getName(): string
{
return 'gii_template_rule';
}

public function getHandler(): string|RuleHandlerInterface
{
return TemplateRuleHandler::class;
Expand Down

0 comments on commit c69f4d4

Please sign in to comment.