Skip to content

Commit

Permalink
Actualize (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored Mar 26, 2024
1 parent e97cf4e commit 4443ba5
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 22 deletions.
9 changes: 5 additions & 4 deletions blog-api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@
"yiisoft/cache": "^3.0",
"yiisoft/cache-file": "^3.0",
"yiisoft/config": "^1.0",
"yiisoft/data": "^1.0",
"yiisoft/data": "dev-master",
"yiisoft/data-cycle": "dev-master",
"yiisoft/data-response": "^2.0",
"yiisoft/definitions": "^3.0",
"yiisoft/di": "^1.0",
"yiisoft/error-handler": "^3.0",
"yiisoft/factory": "^1.0",
"yiisoft/files": "^2.0",
"yiisoft/http": "^1.2",
"yiisoft/hydrator-validator": "^1.0",
"yiisoft/hydrator-validator": "^2.0",
"yiisoft/injector": "^1.0",
"yiisoft/input-http": "dev-master",
"yiisoft/input-http": "^1.0",
"yiisoft/log": "^2.0",
"yiisoft/log-target-file": "^3.0",
"yiisoft/middleware-dispatcher": "^5.1",
Expand All @@ -64,7 +65,7 @@
"yiisoft/user": "^2.0",
"yiisoft/validator": "^1.0",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-cycle": "dev-master",
"yiisoft/yii-cycle": "^1.0",
"yiisoft/yii-debug": "^3.0@dev",
"yiisoft/yii-event": "^2.0",
"yiisoft/yii-http": "^1.0",
Expand Down
2 changes: 2 additions & 0 deletions blog-api/config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Cycle\Database\Config\SQLiteDriverConfig;
use Cycle\Schema\Provider\PhpFileSchemaProvider;
use Yiisoft\ErrorHandler\Middleware\ErrorCatcher;
use Yiisoft\RequestProvider\RequestCatcherMiddleware;
use Yiisoft\Router\Middleware\Router;
use Yiisoft\Yii\Cycle\Schema\Conveyor\AttributedSchemaConveyor;
use Yiisoft\Yii\Cycle\Schema\Provider\FromConveyorSchemaProvider;
Expand All @@ -25,6 +26,7 @@
],
'supportEmail' => '[email protected]',
'middlewares' => [
RequestCatcherMiddleware::class,
ErrorCatcher::class,
Subfolder::class,
Locale::class,
Expand Down
2 changes: 0 additions & 2 deletions blog-api/config/web/di/middleware-dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

use Yiisoft\Definitions\Reference;
use Yiisoft\Input\Http\HydratorAttributeParametersResolver;
use Yiisoft\Input\Http\Request\Catcher\RequestCatcherParametersResolver;
use Yiisoft\Input\Http\RequestInputParametersResolver;
use Yiisoft\Middleware\Dispatcher\CompositeParametersResolver;
use Yiisoft\Middleware\Dispatcher\ParametersResolverInterface;
Expand All @@ -17,7 +16,6 @@
ParametersResolverInterface::class => [
'class' => CompositeParametersResolver::class,
'__construct()' => [
Reference::to(RequestCatcherParametersResolver::class),
Reference::to(HydratorAttributeParametersResolver::class),
Reference::to(RequestInputParametersResolver::class),
],
Expand Down
2 changes: 1 addition & 1 deletion blog-api/src/Blog/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Cycle\ORM\ORMInterface;
use Cycle\ORM\Select;
use Cycle\ORM\Transaction;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;
use Yiisoft\Data\Cycle\Reader\EntityReader;

final class PostRepository extends Select\Repository
{
Expand Down
2 changes: 1 addition & 1 deletion blog-api/src/User/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Yiisoft\Auth\IdentityInterface;
use Yiisoft\Auth\IdentityRepositoryInterface;
use Yiisoft\Auth\IdentityWithTokenRepositoryInterface;
use Yiisoft\Data\Cycle\Reader\EntityReader;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;

final class UserRepository extends Select\Repository implements IdentityWithTokenRepositoryInterface, IdentityRepositoryInterface
{
Expand Down
8 changes: 5 additions & 3 deletions blog/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"yiisoft/config": "^1.3.1",
"yiisoft/cookies": "^1.2",
"yiisoft/csrf": "^2.0",
"yiisoft/data": "dev-master as 1.0",
"yiisoft/data": "dev-master",
"yiisoft/data-cycle": "dev-master",
"yiisoft/data-response": "^2.0",
"yiisoft/definitions": "^3.0",
"yiisoft/di": "^1.2",
Expand All @@ -55,13 +56,14 @@
"yiisoft/html": "^3.0",
"yiisoft/http": "^1.2",
"yiisoft/injector": "^1.0",
"yiisoft/input-http": "dev-master",
"yiisoft/input-http": "^1.0",
"yiisoft/log": "^2.0",
"yiisoft/log-target-file": "^3.0",
"yiisoft/mailer": "^5.0",
"yiisoft/mailer-symfony": "^3.0",
"yiisoft/middleware-dispatcher": "^5.2",
"yiisoft/rate-limiter": "dev-master",
"yiisoft/request-provider": "^1.0",
"yiisoft/rbac": "^1.0",
"yiisoft/rbac-php": "^1.0",
"yiisoft/rbac-rules-container": "^2.0",
Expand All @@ -78,7 +80,7 @@
"yiisoft/widget": "^2.1",
"yiisoft/yii-bootstrap5": "^3.0@dev",
"yiisoft/yii-console": "^2.0",
"yiisoft/yii-cycle": "dev-master",
"yiisoft/yii-cycle": "^1.0",
"yiisoft/yii-dataview": "^3.0@dev",
"yiisoft/yii-debug": "^3.0@dev",
"yiisoft/yii-debug-api": "^3.0@dev",
Expand Down
2 changes: 0 additions & 2 deletions blog/config/web/di/middleware-dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Yiisoft\Definitions\Reference;
use Yiisoft\Input\Http\HydratorAttributeParametersResolver;
use Yiisoft\Input\Http\Request\Catcher\RequestCatcherParametersResolver;
use Yiisoft\Input\Http\RequestInputParametersResolver;
use Yiisoft\Middleware\Dispatcher\CompositeParametersResolver;
use Yiisoft\Middleware\Dispatcher\ParametersResolverInterface;
Expand All @@ -17,7 +16,6 @@
ParametersResolverInterface::class => [
'class' => CompositeParametersResolver::class,
'__construct()' => [
Reference::to(RequestCatcherParametersResolver::class),
Reference::to(HydratorAttributeParametersResolver::class),
Reference::to(RequestInputParametersResolver::class),
],
Expand Down
2 changes: 2 additions & 0 deletions blog/config/web/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Yiisoft\Cookies\CookieMiddleware;
use Yiisoft\ErrorHandler\Middleware\ErrorCatcher;
use Yiisoft\RequestProvider\RequestCatcherMiddleware;
use Yiisoft\Router\Middleware\Router;
use Yiisoft\Session\SessionMiddleware;
use Yiisoft\User\Login\Cookie\CookieLoginMiddleware;
Expand All @@ -13,6 +14,7 @@

return [
'middlewares' => [
RequestCatcherMiddleware::class,
ErrorCatcher::class,
SentryMiddleware::class,
SessionMiddleware::class,
Expand Down
2 changes: 1 addition & 1 deletion blog/src/Auth/IdentityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Cycle\ORM\Select;
use Throwable;
use Yiisoft\Auth\IdentityRepositoryInterface;
use Yiisoft\Yii\Cycle\Data\Writer\EntityWriter;
use Yiisoft\Data\Cycle\Writer\EntityWriter;

final class IdentityRepository extends Select\Repository implements IdentityRepositoryInterface
{
Expand Down
2 changes: 1 addition & 1 deletion blog/src/Blog/Archive/ArchiveRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
use Cycle\ORM\ORMInterface;
use Cycle\ORM\Select;
use DateTimeImmutable;
use Yiisoft\Data\Cycle\Reader\EntityReader;
use Yiisoft\Data\Reader\DataReaderInterface;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;

/**
* This repository is not associated with Post entity.
Expand Down
2 changes: 1 addition & 1 deletion blog/src/Blog/Comment/CommentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Cycle\ORM\Select;
use Yiisoft\Data\Reader\DataReaderInterface;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;
use Yiisoft\Data\Cycle\Reader\EntityReader;

final class CommentRepository extends Select\Repository
{
Expand Down
4 changes: 2 additions & 2 deletions blog/src/Blog/Post/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
use DateTimeImmutable;
use DateTimeInterface;
use Throwable;
use Yiisoft\Data\Cycle\Reader\EntityReader;
use Yiisoft\Data\Cycle\Writer\EntityWriter;
use Yiisoft\Data\Reader\DataReaderInterface;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;
use Yiisoft\Yii\Cycle\Data\Writer\EntityWriter;

final class PostRepository extends Select\Repository
{
Expand Down
2 changes: 1 addition & 1 deletion blog/src/Blog/Tag/TagRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
use Cycle\ORM\ORMInterface;
use Cycle\ORM\Select;
use Cycle\ORM\Select\Repository;
use Yiisoft\Data\Cycle\Reader\EntityReader;
use Yiisoft\Data\Reader\DataReaderInterface;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;

final class TagRepository extends Repository
{
Expand Down
2 changes: 1 addition & 1 deletion blog/src/Command/Fixture/AddCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Throwable;
use Yiisoft\Data\Cycle\Writer\EntityWriter;
use Yiisoft\Yii\Console\ExitCode;
use Yiisoft\Yii\Cycle\Command\CycleDependencyProxy;
use Yiisoft\Yii\Cycle\Data\Writer\EntityWriter;

final class AddCommand extends Command
{
Expand Down
4 changes: 2 additions & 2 deletions blog/src/User/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

use Cycle\ORM\Select;
use Throwable;
use Yiisoft\Data\Cycle\Reader\EntityReader;
use Yiisoft\Data\Cycle\Writer\EntityWriter;
use Yiisoft\Data\Reader\DataReaderInterface;
use Yiisoft\Data\Reader\Sort;
use Yiisoft\Yii\Cycle\Data\Reader\EntityReader;
use Yiisoft\Yii\Cycle\Data\Writer\EntityWriter;

final class UserRepository extends Select\Repository
{
Expand Down

0 comments on commit 4443ba5

Please sign in to comment.