Skip to content

Commit

Permalink
Merge pull request #11 from nigatedev/v2.x.0-dev
Browse files Browse the repository at this point in the history
fix: path to composer autoloader
  • Loading branch information
abass-dev authored Jan 6, 2023
2 parents 29c1dee + 5eb5722 commit cc7c9d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
"role": "Lead Developer"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/abass-dev/framework-bundle"
}
],
"require": {
"php": "^7.4|^8.0",
"nigatedev/framework-bundle": "dev-master"
"nigatedev/framework-bundle": "^1.0"
},
"autoload-dev": {
"psr-4": {
Expand Down
6 changes: 3 additions & 3 deletions niga
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/

if (
file_exists("/autoload.php")
|| file_exists("/vendor/autoload.php")
file_exists("./autoload.php")
|| file_exists("./vendor/autoload.php")
) {
foreach ([
"/autoload.php", "/vendor/autoload.php"
"./autoload.php", "./vendor/autoload.php"
] as $loder) {
if (file_exists($loder)) {
require_once $loder;
Expand Down

0 comments on commit cc7c9d9

Please sign in to comment.