Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arcostasi committed Jul 2, 2022
1 parent bea9026 commit 19f77ab
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/App/Http/Controller/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function book(): ResponseInterface
->setAuthor('AR2 Labs')
->setTitle('Wiring Microframework')
->setPublisher('AR2 Labs')
->setEdition('2.0')
->setYear(2019);
->setEdition(APP_VERSION)
->setYear(2022);

return $this
->json()
Expand Down
4 changes: 2 additions & 2 deletions boot/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Wiring\Interfaces\DatabaseInterface;
use Wiring\Interfaces\RouterInterface;

use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequestFactory;
use Laminas\Diactoros\Response;
use Laminas\Diactoros\ServerRequestFactory;

// Create a dependency injection container
$builder = new DI\ContainerBuilder();
Expand Down
4 changes: 2 additions & 2 deletions boot/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
use Wiring\Strategy\JsonStrategy;
use Wiring\Strategy\ViewStrategy;

use Zend\Diactoros\Response;
use Laminas\Diactoros\Response;

return [

Expand Down Expand Up @@ -161,7 +161,7 @@

$fileHandler = new StreamHandler(
ROOT_PATH . 'storage/log/app.log',
Logger::DEBUG
$level = 'debug'
);

$fileHandler->setFormatter(new LineFormatter());
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
],
"php-cs-fixer": "php-cs-fixer fix --config=php_cs.dist --ansi --no-interaction",
"phpstan": "phpstan analyse app boot config --level=max --autoload-file=./public/helpers.php --no-progress --ansi"
},
"require-dev": {
"phpstan/phpstan": "^1.8"
}
}
2 changes: 1 addition & 1 deletion public/helpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// Define application version
define('APP_VERSION', '2.3.5');
define('APP_VERSION', '2.3.6');
define('PHP_MIN_VER', '7.2.0');
define('ROOT_PATH', dirname(__DIR__));
define('BOOT_PATH', ROOT_PATH . '/boot');
Expand Down

0 comments on commit 19f77ab

Please sign in to comment.