Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
Sam
04281cba8c
Fixes #14793 : Module `->get()` and `->has()` methods now check parent modules and fall back to application if nothing found
7 years ago
Sam
4081a4b203
Fixes #14184 : Module service locator now falls back to its parent module service locator in case component isn't found
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Carsten Brandt
4b9e48b8dc
improved docs: link term "path alias" to the guide
7 years ago
Carsten Brandt
6301daecf7
reverted wrong phpdoc change from #13905
8 years ago
Nikolay Oleynikov
950e895fe0
Fix phpDocumentor annotations ( #13905 ) [skip ci]
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Carsten Brandt
c1c11d06ae
Revert "Fixed some comment issues ( #13392 ) [skip ci]"
...
This reverts commit 652d05f0b8
.
`@property` comments are used to document the property that is
defined by a getter/setter if the method description does not fit.
8 years ago
Hao
652d05f0b8
Fixed some comment issues ( #13392 ) [skip ci]
8 years ago
Alexander Makarov
954c771fdb
Code cleanup ( #13113 )
...
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
Paul Klimov
8d05bd9479
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
...
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
8 years ago
Alexander Makarov
8a452bcc2e
Fixes #10587 : Latest used controller instance was not available in `Response::EVENT_AFTER_SEND` handler
8 years ago
Alexander Makarov
dbe284c618
Changed formatting of phpdoc. See #12409
8 years ago
Roman Grinyov
f0c44bca91
Cosmetic changes 2 ( #12409 ) [skip ci]
8 years ago
Roman Grinyov
ba43ef370d
Cosmetic changes
8 years ago
Andrii Vasyliev
e8d30f0c51
enable use of yii2 inside of phar packaged console applications
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
SilverFire - Dmitry Naumenko
2d68840898
`yii\base\Module::getLayoutPath()` fixed code style
9 years ago
Luis Hernández
d08ef83e2a
Controller->viewPath can be set, fixes #10086
...
Added setViewPath() that allows setting the base path for the
controller's views. Changed getViewPath() to return the value that was
explicitly set, before defaulting to the usual module-based path.
9 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago
Qiang Xue
c01804d7c9
Fixes #7775 : Added more strict check on controller IDs when they are being used to create controller instances on Windows
10 years ago
Carsten Brandt
2f5345b63c
improved beforeAction docs
10 years ago
tom--
70fa53a20f
Update Controller.php and Module.php
...
beforeAction() code style:
1. Return early on error
2. Don't else-after-return
close #7804
10 years ago
Qiang Xue
710e70b8fd
Fixes #2037 : Dropped the support for using `yii\base\Module` as concrete module classes
10 years ago
Qiang Xue
858ceb5039
Added `yii\base\Application::loadedModules`
10 years ago
Carsten Brandt
73cb5f8aac
changed syntax for referencing the guide in apidoc
...
New syntax:
```
[link to guide](guide:file-name.md)
[link to guide](guide:file-name.md#subsection)
```
fixes #4719
10 years ago
Qiang Xue
ef1a6d20d1
When an ID is found to be in both `Application::controllerMap` and `Application::modules`, the former will take precedence
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Carsten Brandt
9e9175fe09
fixed typo
...
fixes #4480
10 years ago
Alexey Samoylov
b3260567c2
Mistype
10 years ago
Qiang Xue
390a6c782e
Fixes #4409 : Upper case letters in subdirectory prefixes of controller IDs were not properly handled
10 years ago
Qiang Xue
06f27758b3
Fixed typo. [skip ci]
10 years ago
Carsten Brandt
910151d787
typo
...
[ci skip]
10 years ago
Qiang Xue
8e96623a56
Fixes #1452 : Added `Module::getInstance()` to allow accessing the module instance from anywhere within the module
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Qiang Xue
d1ab9f72ae
Finished application guide [skip ci]
10 years ago
Carsten Brandt
44d7d5fdd8
fixed wrong usage of @see
11 years ago
Carsten Brandt
e899406494
improved docs about application and module namespace
...
fixes #3539
11 years ago
Qiang Xue
f48a7aedfa
Fixes #3251 : controller should be created using DI container.
11 years ago
Carsten Brandt
91965fd391
phpdoc formatting issues
11 years ago
Qiang Xue
0b29c9607d
fixed broken API links [skip ci]
11 years ago
Qiang Xue
586f5b87b0
Removed `Application::preload` in favor of `Application::bootstrap`
11 years ago
Qiang Xue
50e338127d
Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels
11 years ago
Carsten Brandt
1e75427393
updated classmap and phpdoc
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago