File tree Expand file tree Collapse file tree 10 files changed +13
-12
lines changed
Expand file tree Collapse file tree 10 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- namespace app \controllers ;
3+ namespace app \http \ controllers ;
44
55use mako \http \routing \Controller ;
66use mako \view \ViewFactory ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11<?php
22
3- use app \controllers \Index ;
3+ use app \http \ controllers \Index ;
44
55/** @var \mako\http\routing\Routes $routes */
66
Original file line number Diff line number Diff line change 44 * Configure PHP error reporting.
55 * @see http://php.net/manual/en/function.error-reporting.php
66 */
7- error_reporting (E_ALL | E_STRICT );
7+ error_reporting (E_ALL );
88
99/*
1010 * Choose if errors that are NOT caught by the Mako error and exception handlers should be
Original file line number Diff line number Diff line change 55use mako \database \midgard \ORM ;
66
77class Fortune extends ORM {
8- protected $ tableName = 'Fortune ' ;
8+ protected string $ tableName = 'Fortune ' ;
99}
Original file line number Diff line number Diff line change 55use mako \database \midgard \ORM ;
66
77class World extends ORM {
8- protected $ tableName = 'World ' ;
8+ protected string $ tableName = 'World ' ;
99}
Original file line number Diff line number Diff line change 11{
22 "require" : {
33 "php" : " >=7.4.0" ,
4- "mako/framework" : " ^9 .0"
4+ "mako/framework" : " ^11 .0"
55 },
66 "autoload" : {
77 "psr-4" : {
Original file line number Diff line number Diff line change 1- FROM ubuntu:22 .04
1+ FROM ubuntu:24 .04
22
33ARG DEBIAN_FRONTEND=noninteractive
44
@@ -7,22 +7,22 @@ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
77 apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
88
99RUN apt-get install -yqq nginx git unzip \
10- php8.3 -cli php8.3 -fpm php8.3 -mysql php8.3 -mbstring php8.3 -xml php8.3 -curl > /dev/null
10+ php8.5 -cli php8.5 -fpm php8.5 -mysql php8.5 -mbstring php8.5 -xml php8.5 -curl > /dev/null
1111
1212COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1313
14- COPY deploy/conf/* /etc/php/8.3 /fpm/
14+ COPY deploy/conf/* /etc/php/8.5 /fpm/
1515
1616ADD ./ /mako
1717WORKDIR /mako
1818
19- RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.3 /fpm/php-fpm.conf ; fi;
19+ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.5 /fpm/php-fpm.conf ; fi;
2020
2121RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --ignore-platform-reqs --quiet
2222
2323RUN chmod -R 777 app
2424
2525EXPOSE 8080
2626
27- CMD service php8.3 -fpm start && \
27+ CMD service php8.5 -fpm start && \
2828 nginx -c /mako/deploy/nginx.conf
Original file line number Diff line number Diff line change 11<?php
22
3+ use mako \application \CurrentApplication ;
34use mako \application \web \Application ;
45
56/**
1011/*
1112 * Start and run the application.
1213 */
13- Application:: start ( MAKO_APPLICATION_PATH )->run ();
14+ CurrentApplication:: set ( new Application ( MAKO_APPLICATION_PATH ) )->run ();
You can’t perform that action at this time.
0 commit comments