Skip to content

Commit

Permalink
refactor!(template): rename app directory to src
Browse files Browse the repository at this point in the history
The template is not that for an application; therefore, it makes more
sense to have a src directory.

BREAKING CHANGE: template file structure is now different.

Resolves #1
  • Loading branch information
geoffreyvanwyk committed Aug 10, 2024
1 parent 5e2585d commit 490b33c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion {{ cookiecutter.package_name }}/bootstrap/app.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ return Application::configure(basePath: dirname(__DIR__))
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();
})
->create()
->useAppPath(dirname(__DIR__) . '/src');

2 changes: 1 addition & 1 deletion {{ cookiecutter.package_name }}/composer.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"autoload": {
"psr-4": {
"{{ cookiecutter.php_namespace }}\\": "app/"
"{{ cookiecutter.php_namespace }}\\": "src/"
}
},
"autoload-dev": {
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.package_name }}/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</testsuites>
<source>
<include>
<directory>app</directory>
<directory>src</directory>
</include>
</source>
<php>
Expand Down

0 comments on commit 490b33c

Please sign in to comment.