Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
07924c2b
Commit
07924c2b
authored
Mar 08, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed config/bootstrap.php; moved content to main config
parent
3f978b9f
Pipeline
#7839
passed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
bootstrap.php
src/config/bootstrap.php
+0
-10
main.php
src/config/main.php
+5
-0
index.php
web/index.php
+0
-1
yii
yii
+0
-1
No files found.
src/config/bootstrap.php
deleted
100644 → 0
View file @
3f978b9f
<?php
Yii
::
setAlias
(
'@app'
,
dirname
(
__DIR__
)
.
'/..'
);
Yii
::
setAlias
(
'@runtime'
,
dirname
(
__DIR__
)
.
'/../../runtime'
);
## TODO fix paths
Yii
::
setAlias
(
'@web'
,
dirname
(
__DIR__
)
.
'/../web'
);
Yii
::
setAlias
(
'@webroot'
,
dirname
(
__DIR__
)
.
'/web'
);
Yii
::
setAlias
(
'@root'
,
'@app'
);
src/config/main.php
View file @
07924c2b
<?php
Yii
::
setAlias
(
'@app'
,
dirname
(
__DIR__
)
.
'/..'
);
Yii
::
setAlias
(
'@runtime'
,
dirname
(
__DIR__
)
.
'/../../runtime'
);
Yii
::
setAlias
(
'@web'
,
dirname
(
__DIR__
)
.
'/../web'
);
Yii
::
setAlias
(
'@webroot'
,
dirname
(
__DIR__
)
.
'/web'
);
Yii
::
setAlias
(
'@root'
,
'@app'
);
$common
=
[
'id'
=>
'app'
,
...
...
web/index.php
View file @
07924c2b
...
...
@@ -8,7 +8,6 @@ defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
getenv
(
'YII_ENV'
));
require
(
$rootPath
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
$rootPath
.
'/src/config/bootstrap.php'
);
$config
=
require
(
$rootPath
.
'/src/config/main.php'
);
$application
=
new
yii\web\Application
(
$config
);
...
...
yii
View file @
07924c2b
...
...
@@ -21,7 +21,6 @@ defined('YII_DEBUG') or define('YII_DEBUG', (boolean)getenv('YII_DEBUG'));
defined
(
'YII_ENV'
)
or
define
(
'YII_ENV'
,
getenv
(
'YII_ENV'
));
require
(
__DIR__
.
'/vendor/yiisoft/yii2/Yii.php'
);
require
(
__DIR__
.
'/src/config/bootstrap.php'
);
require
(
__DIR__
.
'/src/config/main.php'
);
$application
=
new
yii\console\Application
(
$config
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment