Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berkut1 committed Jun 11, 2024
1 parent bbe482a commit 1c1542f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Requirements
Installation
------------
apache or nginx (https://symfony.com/doc/6.4/setup/web_server_configuration.html#nginx)
- `sudo apt install php8.3-soap php8.3-xml php8.3-mbstring php8.3-intl` - php libs
- `sudo apt install php8.3-soap php8.3-xml php8.3-mbstring php8.3-intl php8.3-curl` - php libs
- `git clone --branch builded https://github.com/berkut1/scpm.git`
- `composer install`
- `composer dump-env prod` after in the file .env.local.php update APP_SECRET, DATABASE_URL and JWT_PASSPHRASE variables
Expand All @@ -36,6 +36,7 @@ Update
- `git pull`
- `composer sefl-update`
- `composer install --no-dev --optimize-autoloader`
- `php bin/console asset-map:compile`
- `APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear`

Descriptions (true for HyperV SolidCP module)
Expand Down
4 changes: 2 additions & 2 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ when@prod:
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log" #php://stderr
level: debug
formatter: monolog.formatter.json
console:
Expand All @@ -58,5 +58,5 @@ when@prod:
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log" #php://stderr
formatter: monolog.formatter.json
1 change: 1 addition & 0 deletions src/Model/User/UseCase/Create/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function handle(Command $command): void
$command->login,
$hash,
);
$user->changeRole(new Role($command->role));

$this->users->add($user);

Expand Down
1 change: 1 addition & 0 deletions src/Model/User/UseCase/SignUp/Manual/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function handle(Command $command): void
$command->login,
$hash,
);
$user->changeRole(new Role($command->role));

$this->users->add($user);

Expand Down

0 comments on commit 1c1542f

Please sign in to comment.