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
1122da95
Commit
1122da95
authored
May 25, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjustments according to comments on #3575
parent
07f30cb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
Application.php
framework/base/Application.php
+4
-8
No files found.
framework/base/Application.php
View file @
1122da95
...
...
@@ -8,7 +8,6 @@
namespace
yii\base
;
use
Yii
;
use
yii\log\Logger
;
/**
* Application is the base class for all application classes.
...
...
@@ -153,8 +152,8 @@ abstract class Application extends Module
* [[bootstrap()|bootstrapping process]]. If the class implements [[BootstrapInterface]],
* its [[BootstrapInterface::bootstrap()|bootstrap()]] method will be also be called.
*
* If
the property isn't specified in the application bootstrap file i.e. index.php, content is loaded automatically
*
from @vendor/yiisoft/extensions.php
.
* If
not set explicitily in the application config, this property will be populated with the contents of
*
`@vendor/yiisoft/extensions.php`
.
*/
public
$extensions
;
/**
...
...
@@ -267,11 +266,8 @@ abstract class Application extends Module
protected
function
bootstrap
()
{
if
(
$this
->
extensions
===
null
)
{
try
{
$this
->
extensions
=
include
Yii
::
getAlias
(
'@vendor/yiisoft/extensions.php'
);
}
catch
(
ErrorException
$e
)
{
$this
->
extensions
=
[];
}
$file
=
Yii
::
getAlias
(
'@vendor/yiisoft/extensions.php'
);
$this
->
extensions
=
is_file
(
$file
)
?
include
(
$file
)
:
[];
}
foreach
(
$this
->
extensions
as
$extension
)
{
if
(
!
empty
(
$extension
[
'alias'
]))
{
...
...
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