-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef537c0
commit ca27571
Showing
9 changed files
with
906 additions
and
3,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
# IDE files | ||
/.idea | ||
|
||
/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,14 @@ | |
|
||
use Jadob\Core\AbstractBootstrap; | ||
|
||
/** | ||
* Class Bootstrap | ||
* @author pizzaminded <[email protected]> | ||
* @license MIT | ||
*/ | ||
|
||
class Bootstrap extends AbstractBootstrap | ||
{ | ||
|
||
public function getServiceProviders(string $env): array | ||
{ | ||
return [ | ||
\Jadob\SymfonyConsoleBridge\ServiceProvider\ConsoleProvider::class, | ||
\Jadob\Bridge\Symfony\Console\ServiceProvider\ConsoleProvider::class, | ||
\Jadob\Router\ServiceProvider\RouterServiceProvider::class, | ||
\Jadob\Bridge\Twig\ServiceProvider\TwigProvider::class | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
# jadob/skeleton | ||
|
||
This is a generic project structure for jadob/jadob `0.4.x` version. Feel free to modify it as you want! | ||
This is a minimal project structure for jadob/jadob `0.4.x` version, which includes: | ||
- Support for CLI commands | ||
- Twig Template engine | ||
|
||
## Getting started | ||
|
||
Install dependencies: | ||
|
||
``composer install`` | ||
|
||
Create `.env` file in your project with given content: | ||
|
||
```dotenv | ||
APP_ENV=dev | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* Includes all required files and performs basic env checks before continuing with execution. | ||
*/ | ||
use Jadob\Core\Kernel; | ||
use Symfony\Component\Dotenv\Dotenv; | ||
|
||
require_once __DIR__.'/vendor/autoload.php'; | ||
require_once __DIR__.'/Bootstrap.php'; | ||
|
||
(new Dotenv())->load(__DIR__.'/.env'); | ||
|
||
/** | ||
* If your app relies on some environment variables, pass it here. | ||
*/ | ||
Kernel::checkEnvsPresence([ | ||
'APP_ENV' | ||
]); | ||
|
||
/** | ||
* If your app relies on specific PHP extensions, pass the names here. | ||
*/ | ||
Kernel::checkExtensionsPresence([ | ||
|
||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.