Skip to content

Commit

Permalink
add base code
Browse files Browse the repository at this point in the history
  • Loading branch information
rito328 committed Jun 4, 2019
0 parents commit 7919030
Show file tree
Hide file tree
Showing 12 changed files with 2,134 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAMPLE_ENV=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor
.env
Empty file added .gitkeep
Empty file.
Empty file added app/Controller/.gitkeep
Empty file.
Empty file added app/Service/.gitkeep
Empty file.
14 changes: 14 additions & 0 deletions bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);

require_once __PROJECT_ROOT__ . "/vendor/autoload.php";

$dotenv = Dotenv\Dotenv::create(__PROJECT_ROOT__);
$dotenv->load();

Configure\Configure::Instance();

// 追加
$builder = new DI\ContainerBuilder();
$builder->addDefinitions('bootstrap/container.php');
$container = $builder->build();
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Configure\\": "config/"
}
},
"require": {
"vlucas/phpdotenv": "^3.3",
"php-di/php-di": "^6.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
},
"scripts": {
"test": "phpunit"
}
}
Loading

0 comments on commit 7919030

Please sign in to comment.