Skip to content

Commit

Permalink
[PHP]: HLEB2 - slight improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
phphleb committed Dec 3, 2024
1 parent 686cb28 commit 43e11c6
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 43 deletions.
2 changes: 1 addition & 1 deletion php/hleb2-roadrunner/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": ">=8.2.0",
"phphleb/framework": "v2.0.45",
"phphleb/framework": "v2.0.48",
"nyholm/psr7": "1.8.2",
"spiral/roadrunner-cli": "@stable",
"spiral/roadrunner-http": "@stable"
Expand Down
2 changes: 1 addition & 1 deletion php/hleb2-roadrunner/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
website: hleb2framework.ru
github: phphleb/hleb
version: 2.0.45
version: 2.0.48

files:
- console
Expand Down
10 changes: 0 additions & 10 deletions php/hleb2-roadrunner/config/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
'routes.auto-update' => false,
'container.mock.allowed' => false,
'app.cache.on' => false,
'twig.options' => [
'debug' => true,
'charset' => 'utf-8',
'auto_reload' => true,
'strict_variables' => false,
'autoescape' => false,
'optimizations' => -1,
'cache' => true,
],
'twig.cache.inverted' => [],
'show.request.id' => false,
'max.log.size' => 0,
'max.cache.size' => 0,
Expand Down
4 changes: 2 additions & 2 deletions php/hleb2-roadrunner/routes/map.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Route::get('/', preview(''));
Route::get('/', '');
Route::get('/user/{id}', preview('{%id%}'));
Route::post('/user', preview(''));
Route::post('/user', '');
2 changes: 1 addition & 1 deletion php/hleb2-swoole/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"phphleb/framework": ">=v2.0.45"
"phphleb/framework": ">=v2.0.48"
},
"autoload": {
"classmap": [
Expand Down
2 changes: 1 addition & 1 deletion php/hleb2-swoole/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
website: hleb2framework.ru
github: phphleb/hleb
version: 2.0.45
version: 2.0.48

files:
- console
Expand Down
10 changes: 0 additions & 10 deletions php/hleb2-swoole/config/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
'routes.auto-update' => false,
'container.mock.allowed' => false,
'app.cache.on' => false,
'twig.options' => [
'debug' => true,
'charset' => 'utf-8',
'auto_reload' => true,
'strict_variables' => false,
'autoescape' => false,
'optimizations' => -1,
'cache' => true,
],
'twig.cache.inverted' => [],
'show.request.id' => false,
'max.log.size' => 0,
'max.cache.size' => 0,
Expand Down
4 changes: 2 additions & 2 deletions php/hleb2-swoole/routes/map.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Route::get('/', preview(''));
Route::get('/', '');
Route::get('/user/{id}', preview('{%id%}'));
Route::post('/user', preview(''));
Route::post('/user', '');
2 changes: 1 addition & 1 deletion php/hleb2/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": ">=8.2.0",
"phphleb/framework": "v2.0.45"
"phphleb/framework": "v2.0.48"
},
"autoload": {
"classmap": [
Expand Down
2 changes: 1 addition & 1 deletion php/hleb2/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
framework:
website: hleb2framework.ru
github: phphleb/hleb
version: 2.0.45
version: 2.0.48

files:
- console
Expand Down
10 changes: 0 additions & 10 deletions php/hleb2/config/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
'routes.auto-update' => false,
'container.mock.allowed' => false,
'app.cache.on' => false,
'twig.options' => [
'debug' => true,
'charset' => 'utf-8',
'auto_reload' => true,
'strict_variables' => false,
'autoescape' => false,
'optimizations' => -1,
'cache' => true,
],
'twig.cache.inverted' => [],
'show.request.id' => false,
'max.log.size' => 0,
'max.cache.size' => 0,
Expand Down
6 changes: 5 additions & 1 deletion php/hleb2/public/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php

use Hleb\HlebBootstrap;

define('HLEB_PUBLIC_DIR', realpath(__DIR__));
define('HLEB_GLOBAL_DIR', realpath(__DIR__ . '/../'));

require __DIR__ . '/../vendor/phphleb/framework/bootstrap.php';
require HLEB_GLOBAL_DIR . '/vendor/phphleb/framework/HlebBootstrap.php';

(new HlebBootstrap(HLEB_PUBLIC_DIR))->load();
4 changes: 2 additions & 2 deletions php/hleb2/routes/map.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

Route::get('/', preview(''));
Route::get('/', '');
Route::get('/user/{id}', preview('{%id%}'));
Route::post('/user', preview(''));
Route::post('/user', '');

0 comments on commit 43e11c6

Please sign in to comment.