Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
6f2f1a1b
Commit
6f2f1a1b
authored
Oct 18, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1008 from sensorario/master
Convert configuration to short syntax
parents
153f6971
24949398
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
42 deletions
+42
-42
AppAsset.php
apps/basic/config/AppAsset.php
+6
-6
console.php
apps/basic/config/console.php
+15
-15
params.php
apps/basic/config/params.php
+2
-2
web.php
apps/basic/config/web.php
+19
-19
No files found.
apps/basic/config/AppAsset.php
View file @
6f2f1a1b
...
...
@@ -17,13 +17,13 @@ class AppAsset extends AssetBundle
{
public
$basePath
=
'@webroot'
;
public
$baseUrl
=
'@web'
;
public
$css
=
array
(
public
$css
=
[
'css/site.css'
,
)
;
public
$js
=
array
(
)
;
public
$depends
=
array
(
]
;
public
$js
=
[
]
;
public
$depends
=
[
'yii\web\YiiAsset'
,
'yii\bootstrap\BootstrapAsset'
,
)
;
]
;
}
apps/basic/config/console.php
View file @
6f2f1a1b
<?php
$params
=
require
(
__DIR__
.
'/params.php'
);
return
array
(
return
[
'id'
=>
'bootstrap-console'
,
'basePath'
=>
dirname
(
__DIR__
),
'preload'
=>
array
(
'log'
),
'controllerPath'
=>
dirname
(
__DIR__
)
.
'/commands'
,
'controllerNamespace'
=>
'app\commands'
,
'modules'
=>
array
(
)
,
'components'
=>
array
(
'cache'
=>
array
(
'modules'
=>
[
]
,
'components'
=>
[
'cache'
=>
[
'class'
=>
'yii\caching\FileCache'
,
)
,
'log'
=>
array
(
'targets'
=>
array
(
array
(
]
,
'log'
=>
[
'targets'
=>
[
[
'class'
=>
'yii\log\FileTarget'
,
'levels'
=>
array
(
'error'
,
'warning'
)
,
)
,
)
,
)
,
)
,
'levels'
=>
[
'error'
,
'warning'
]
,
]
,
]
,
]
,
]
,
'params'
=>
$params
,
)
;
]
;
apps/basic/config/params.php
View file @
6f2f1a1b
<?php
return
array
(
return
[
'adminEmail'
=>
'admin@example.com'
,
)
;
]
;
apps/basic/config/web.php
View file @
6f2f1a1b
<?php
$params
=
require
(
__DIR__
.
'/params.php'
);
$config
=
array
(
$config
=
[
'id'
=>
'bootstrap'
,
'basePath'
=>
dirname
(
__DIR__
),
'components'
=>
array
(
'request'
=>
array
(
'components'
=>
[
'request'
=>
[
'enableCsrfValidation'
=>
true
,
)
,
'cache'
=>
array
(
]
,
'cache'
=>
[
'class'
=>
'yii\caching\FileCache'
,
)
,
'user'
=>
array
(
]
,
'user'
=>
[
'identityClass'
=>
'app\models\User'
,
)
,
'errorHandler'
=>
array
(
]
,
'errorHandler'
=>
[
'errorAction'
=>
'site/error'
,
)
,
'log'
=>
array
(
]
,
'log'
=>
[
'traceLevel'
=>
YII_DEBUG
?
3
:
0
,
'targets'
=>
array
(
array
(
'targets'
=>
[
[
'class'
=>
'yii\log\FileTarget'
,
'levels'
=>
array
(
'error'
,
'warning'
)
,
)
,
)
,
)
,
)
,
'levels'
=>
[
'error'
,
'warning'
]
,
]
,
]
,
]
,
]
,
'params'
=>
$params
,
)
;
]
;
if
(
YII_ENV_DEV
)
{
$config
[
'preload'
][]
=
'debug'
;
...
...
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