Skip to content

Commit a942920

Browse files
authored
Completed -v1.2.1
Completed -v1.2.1 - Added special map route method
2 parents ed76cbf + c08015c commit a942920

File tree

22 files changed

+1289
-580
lines changed

22 files changed

+1289
-580
lines changed

.env

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
APP_NAME = 'PhpSlides'
2-
APP_VERSION = '1.2.1'
3-
APP_SERVER = 'localhost'
1+
APP_NAME=PhpSlides
2+
APP_VERSION=1.2.1
3+
APP_SERVER=localhost
4+
APP_DEBUG=true
45

5-
## DATABASE INFO
6-
DB_USER = 'root'
7-
DB_PASS = 'root'
8-
DB_HOST = 'localhost'
9-
DB_BASE = 'php_slides'
6+
DB_CONN=mysql
7+
DB_PORT=3306
8+
DB_HOST=0.0.0
9+
DB_USER=root
10+
DB_PASS=root
11+
DB_BASE=php_slides

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
APP_NAME=PhpSlides
2+
APP_VERSION=1.2.1
3+
APP_SERVER=localhost
4+
APP_DEBUG=true
5+
6+
DB_CONN=mysql
7+
DB_PORT=3306
8+
DB_HOST=0.0.0
9+
DB_USER=root
10+
DB_PASS=root
11+
DB_BASE=php_slides

.github/FUNDING.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: ['dconco']
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
6+
ko_fi: ['Ko-fi.com/dconco']
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
1212
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13-
custom: ['https://www.buymeacoffee.com/dconco']
13+
custom: ['https://www.buymeacoffee.com/dconco']

App/Controller/ApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ final public static function any(array|string $route, int $class_method, string
8484

8585
// Gets all constant int values wrapped in an array
8686
ob_start();
87-
$bin_const_types = include $dir . "/App/bin/const_types.php";
87+
$bin_const_types = include $dir . "/app/bin/const_types.php";
8888
ob_end_clean();
8989

9090
$bin_const_types = unserialize(hex2bin(($bin_const_types)));

App/Controller/ClassController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ClassController extends Controller
1818
{
1919

2020
/**
21-
* @param object|string $class In implementing class constructor from Controller
21+
* @param object|string $class In implementing class constructor from controller
2222
* @param string $method In accessing methods to render to routes
2323
* @return mixed From class methods and __invoke function
2424
*/
@@ -40,7 +40,7 @@ protected static function __class(object|string $class, string $method, array|nu
4040
}
4141
else
4242
{
43-
throw new Exception("No Controller class found as - $class", 1);
43+
throw new Exception("No controller class found as - $class", 1);
4444
}
4545
}
4646
catch ( Exception $e )

0 commit comments

Comments
 (0)