Skip to content
Permalink
Browse files

Make the wannabe fully qualified namespaces in docblock tags actually…

… fully qualified by adding leading backslashes.

Resolves #2870
  • Loading branch information...
ndm2
ndm2 committed Feb 20, 2014
1 parent 6cd8408 commit 6c32004206334c31d6f3671dc4b5ee79cdd82b08
Showing with 762 additions and 762 deletions.
  1. +5 −5 src/Cache/Cache.php
  2. +2 −2 src/Cache/CacheRegistry.php
  3. +2 −2 src/Cache/Engine/FileEngine.php
  4. +4 −4 src/Cache/Engine/MemcachedEngine.php
  5. +1 −1 src/Configure/Engine/IniConfig.php
  6. +1 −1 src/Configure/Engine/PhpConfig.php
  7. +1 −1 src/Console/Command/Task/FixtureTask.php
  8. +2 −2 src/Console/Command/Task/TestTask.php
  9. +1 −1 src/Console/ConsoleInputArgument.php
  10. +2 −2 src/Console/ConsoleInputOption.php
  11. +4 −4 src/Console/ConsoleOptionParser.php
  12. +3 −3 src/Console/ShellDispatcher.php
  13. +1 −1 src/Console/TaskRegistry.php
  14. +1 −1 src/Controller/Component/Acl/PhpAcl.php
  15. +2 −2 src/Controller/Component/AclComponent.php
  16. +1 −1 src/Controller/Component/Auth/ActionsAuthorize.php
  17. +6 −6 src/Controller/Component/Auth/BaseAuthenticate.php
  18. +3 −3 src/Controller/Component/Auth/BaseAuthorize.php
  19. +5 −5 src/Controller/Component/Auth/BasicAuthenticate.php
  20. +2 −2 src/Controller/Component/Auth/ControllerAuthorize.php
  21. +1 −1 src/Controller/Component/Auth/CrudAuthorize.php
  22. +3 −3 src/Controller/Component/Auth/DigestAuthenticate.php
  23. +3 −3 src/Controller/Component/Auth/FormAuthenticate.php
  24. +8 −8 src/Controller/Component/AuthComponent.php
  25. +3 −3 src/Controller/Component/CookieComponent.php
  26. +5 −5 src/Controller/Component/CsrfComponent.php
  27. +1 −1 src/Controller/Component/PaginatorComponent.php
  28. +4 −4 src/Controller/Component/RequestHandlerComponent.php
  29. +4 −4 src/Controller/Component/SecurityComponent.php
  30. +3 −3 src/Controller/ComponentRegistry.php
  31. +16 −16 src/Controller/Controller.php
  32. +2 −2 src/Controller/ErrorController.php
  33. +2 −2 src/Core/Configure.php
  34. +2 −2 src/Core/Plugin.php
  35. +1 −1 src/Core/StaticConfigTrait.php
  36. +5 −5 src/Database/Connection.php
  37. +1 −1 src/Database/Dialect/MysqlDialectTrait.php
  38. +4 −4 src/Database/Dialect/PostgresDialectTrait.php
  39. +5 −5 src/Database/Dialect/SqliteDialectTrait.php
  40. +3 −3 src/Database/Driver.php
  41. +2 −2 src/Database/Driver/PDODriverTrait.php
  42. +2 −2 src/Database/Driver/Sqlite.php
  43. +1 −1 src/Database/Expression/Comparison.php
  44. +1 −1 src/Database/Expression/FunctionExpression.php
  45. +1 −1 src/Database/Expression/IdentifierExpression.php
  46. +1 −1 src/Database/Expression/OrderByExpression.php
  47. +2 −2 src/Database/Expression/QueryExpression.php
  48. +1 −1 src/Database/Expression/TupleComparison.php
  49. +1 −1 src/Database/Expression/UnaryExpression.php
  50. +5 −5 src/Database/Expression/ValuesExpression.php
  51. +1 −1 src/Database/ExpressionInterface.php
  52. +2 −2 src/Database/IdentifierQuoter.php
  53. +27 −27 src/Database/Query.php
  54. +11 −11 src/Database/Schema/BaseSchema.php
  55. +7 −7 src/Database/Schema/Collection.php
  56. +1 −1 src/Database/Schema/MysqlSchema.php
  57. +1 −1 src/Database/Schema/PostgresSchema.php
  58. +2 −2 src/Database/Schema/SqliteSchema.php
  59. +3 −3 src/Database/Schema/Table.php
  60. +1 −1 src/Database/Statement/BufferedStatement.php
  61. +2 −2 src/Database/Statement/CallbackStatement.php
  62. +1 −1 src/Database/Statement/PDOStatement.php
  63. +2 −2 src/Database/Statement/StatementDecorator.php
  64. +1 −1 src/Database/Type.php
  65. +1 −1 src/Database/Type/BinaryType.php
  66. +6 −6 src/Datasource/ConnectionManager.php
  67. +2 −2 src/Datasource/ConnectionRegistry.php
  68. +1 −1 src/Datasource/QueryCacher.php
  69. +2 −2 src/Datasource/RepositoryInterface.php
  70. +1 −1 src/Error/ExceptionRenderer.php
  71. +9 −9 src/Event/EventManager.php
  72. +3 −3 src/I18n/I18n.php
  73. +2 −2 src/I18n/L10n.php
  74. +2 −2 src/Log/Engine/ConsoleLog.php
  75. +2 −2 src/Log/Log.php
  76. +2 −2 src/Log/LogEngineRegistry.php
  77. +1 −1 src/Network/Email/AbstractTransport.php
  78. +1 −1 src/Network/Email/DebugTransport.php
  79. +52 −52 src/Network/Email/Email.php
  80. +2 −2 src/Network/Email/MailTransport.php
  81. +11 −11 src/Network/Email/SmtpTransport.php
  82. +8 −8 src/Network/Http/Adapter/Stream.php
  83. +2 −2 src/Network/Http/Auth/Digest.php
  84. +2 −2 src/Network/Http/Auth/Oauth.php
  85. +15 −15 src/Network/Http/Client.php
  86. +1 −1 src/Network/Http/FormData.php
  87. +1 −1 src/Network/Http/Request.php
  88. +5 −5 src/Network/Request.php
  89. +4 −4 src/Network/Response.php
  90. +3 −3 src/Network/Session.php
  91. +1 −1 src/Network/Session/CacheSession.php
  92. +2 −2 src/Network/Socket.php
  93. +8 −8 src/ORM/Association.php
  94. +1 −1 src/ORM/Association/BelongsTo.php
  95. +4 −4 src/ORM/Association/BelongsToMany.php
  96. +1 −1 src/ORM/Association/DependentDeleteTrait.php
  97. +4 −4 src/ORM/Association/ExternalAssociationTrait.php
  98. +3 −3 src/ORM/Behavior.php
  99. +8 −8 src/ORM/BehaviorRegistry.php
  100. +4 −4 src/ORM/EntityValidator.php
  101. +8 −8 src/ORM/Marshaller.php
  102. +9 −9 src/ORM/Query.php
  103. +1 −1 src/ORM/ResultSet.php
  104. +17 −17 src/ORM/Table.php
  105. +2 −2 src/ORM/TableRegistry.php
  106. +14 −14 src/Routing/Dispatcher.php
  107. +2 −2 src/Routing/DispatcherFilter.php
  108. +4 −4 src/Routing/Filter/AssetDispatcher.php
  109. +2 −2 src/Routing/Filter/CacheDispatcher.php
  110. +1 −1 src/Routing/Route/RedirectRoute.php
  111. +2 −2 src/Routing/RouteCollection.php
  112. +11 −11 src/Routing/Router.php
  113. +3 −3 src/TestSuite/ControllerTestCase.php
  114. +2 −2 src/TestSuite/Coverage/BaseCoverageReport.php
  115. +1 −1 src/TestSuite/Fixture/FixtureInjector.php
  116. +6 −6 src/TestSuite/Fixture/FixtureManager.php
  117. +6 −6 src/TestSuite/Fixture/TestFixture.php
  118. +3 −3 src/TestSuite/TestCase.php
  119. +2 −2 src/TestSuite/TestSuiteCommand.php
  120. +1 −1 src/TestSuite/TestSuiteDispatcher.php
  121. +1 −1 src/Utility/Debugger.php
  122. +2 −2 src/Utility/ModelAwareTrait.php
  123. +1 −1 src/Utility/Number.php
  124. +2 −2 src/Utility/ObjectCollection.php
  125. +3 −3 src/Utility/ObjectRegistry.php
  126. +6 −6 src/Utility/Security.php
  127. +5 −5 src/Utility/Time.php
  128. +5 −5 src/Utility/Xml.php
  129. +1 −1 src/Validation/Validation.php
  130. +4 −4 src/Validation/ValidationSet.php
  131. +5 −5 src/Validation/Validator.php
  132. +3 −3 src/View/Form/ArrayContext.php
  133. +1 −1 src/View/Form/ContextInterface.php
  134. +4 −4 src/View/Form/EntityContext.php
  135. +2 −2 src/View/Form/NullContext.php
  136. +1 −1 src/View/Helper.php
  137. +2 −2 src/View/Helper/CacheHelper.php
  138. +11 −11 src/View/Helper/FormHelper.php
  139. +2 −2 src/View/Helper/HtmlHelper.php
  140. +10 −10 src/View/Helper/NumberHelper.php
  141. +1 −1 src/View/Helper/PaginatorHelper.php
  142. +1 −1 src/View/Helper/StringTemplateTrait.php
  143. +1 −1 src/View/Helper/TextHelper.php
  144. +25 −25 src/View/Helper/TimeHelper.php
  145. +2 −2 src/View/HelperRegistry.php
  146. +10 −10 src/View/View.php
  147. +1 −1 src/View/ViewBlock.php
  148. +1 −1 src/View/Widget/Basic.php
  149. +1 −1 src/View/Widget/Button.php
  150. +2 −2 src/View/Widget/Checkbox.php
  151. +3 −3 src/View/Widget/DateTime.php
  152. +1 −1 src/View/Widget/File.php
  153. +1 −1 src/View/Widget/InputRegistry.php
  154. +2 −2 src/View/Widget/Label.php
  155. +4 −4 src/View/Widget/MultiCheckbox.php
  156. +4 −4 src/View/Widget/Radio.php
  157. +2 −2 src/View/Widget/SelectBox.php
  158. +1 −1 src/View/Widget/Textarea.php
  159. +7 −7 tests/TestCase/Cache/CacheTest.php
  160. +3 −3 tests/TestCase/Configure/Engine/IniConfigTest.php
  161. +4 −4 tests/TestCase/Configure/Engine/PhpConfigTest.php
  162. +7 −7 tests/TestCase/Console/ConsoleOptionParserTest.php
  163. +1 −1 tests/TestCase/Console/TaskRegistryTest.php
  164. +2 −2 tests/TestCase/Controller/Component/AclComponentTest.php
  165. +1 −1 tests/TestCase/Controller/Component/Auth/BasicAuthenticateTest.php
  166. +1 −1 tests/TestCase/Controller/Component/Auth/ControllerAuthorizeTest.php
  167. +2 −2 tests/TestCase/Controller/Component/Auth/DigestAuthenticateTest.php
  168. +4 −4 tests/TestCase/Controller/Component/AuthComponentTest.php
  169. +2 −2 tests/TestCase/Controller/Component/CsrfComponentTest.php
  170. +1 −1 tests/TestCase/Controller/Component/PaginatorComponentTest.php
  171. +1 −1 tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
  172. +1 −1 tests/TestCase/Controller/Component/SecurityComponentTest.php
  173. +1 −1 tests/TestCase/Controller/ComponentRegistryTest.php
  174. +6 −6 tests/TestCase/Controller/ControllerTest.php
  175. +2 −2 tests/TestCase/Controller/PagesControllerTest.php
  176. +1 −1 tests/TestCase/Core/ConfigureTest.php
  177. +2 −2 tests/TestCase/Core/PluginTest.php
  178. +2 −2 tests/TestCase/Database/ConnectionTest.php
  179. +3 −3 tests/TestCase/Database/QueryTest.php
  180. +1 −1 tests/TestCase/Database/Schema/CollectionTest.php
  181. +3 −3 tests/TestCase/Database/Schema/TableTest.php
  182. +5 −5 tests/TestCase/Datasource/ConnectionManagerTest.php
  183. +1 −1 tests/TestCase/Event/EventManagerTest.php
  184. +1 −1 tests/TestCase/I18n/I18nTest.php
  185. +5 −5 tests/TestCase/Log/LogTest.php
  186. +10 −10 tests/TestCase/Network/Email/EmailTest.php
  187. +3 −3 tests/TestCase/Network/Email/SmtpTransportTest.php
  188. +1 −1 tests/TestCase/Network/Http/Auth/OauthTest.php
  189. +2 −2 tests/TestCase/Network/Http/ClientTest.php
  190. +1 −1 tests/TestCase/Network/Http/RequestTest.php
  191. +1 −1 tests/TestCase/Network/RequestTest.php
  192. +3 −3 tests/TestCase/Network/ResponseTest.php
  193. +1 −1 tests/TestCase/Network/SocketTest.php
  194. +4 −4 tests/TestCase/ORM/BehaviorRegistryTest.php
  195. +2 −2 tests/TestCase/ORM/BehaviorTest.php
  196. +7 −7 tests/TestCase/ORM/TableTest.php
  197. +9 −9 tests/TestCase/Routing/DispatcherTest.php
  198. +5 −5 tests/TestCase/Routing/RouterTest.php
  199. +1 −1 tests/TestCase/TestSuite/ControllerTestCaseTest.php
  200. +1 −1 tests/TestCase/Utility/DebuggerTest.php
  201. +1 −1 tests/TestCase/Utility/NumberTest.php
  202. +1 −1 tests/TestCase/Utility/ObjectCollectionTest.php
  203. +9 −9 tests/TestCase/Utility/SecurityTest.php
  204. +3 −3 tests/TestCase/Utility/XmlTest.php
  205. +1 −1 tests/TestCase/Validation/ValidationTest.php
  206. +1 −1 tests/TestCase/View/Helper/FormHelperTest.php
  207. +2 −2 tests/TestCase/View/Helper/HtmlHelperTest.php
  208. +2 −2 tests/TestCase/View/HelperRegistryTest.php
  209. +1 −1 tests/TestCase/View/StringTemplateTest.php
  210. +6 −6 tests/TestCase/View/ViewTest.php
  211. +1 −1 tests/test_app/TestApp/Controller/PagesController.php
  212. +1 −1 tests/test_app/TestApp/Controller/SomePagesController.php
@@ -63,7 +63,7 @@
* @param string $name Name of the configuration
* @param array $config Optional associative array of settings passed to the engine
* @return array [engine, settings] on success, false on failure
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
class Cache {
@@ -103,15 +103,15 @@ class Cache {
/**
* Cache Registry used for creating and using cache adapters.
*
* @var Cake\Cache\CacheRegistry
* @var \Cake\Cache\CacheRegistry
*/
protected static $_registry;
/**
* Finds and builds the instance of the required engine class.
*
* @param string $name Name of the config array that needs an engine instance built
* @throws Cake\Error\Exception When a cache engine cannot be created.
* @throws \Cake\Error\Exception When a cache engine cannot be created.
*/
protected static function _buildEngine($name) {
if (empty(static::$_registry)) {
@@ -140,7 +140,7 @@ protected static function _buildEngine($name) {
* triggered.
*
* @param string $config The configuration name you want an engine for.
* @return Cake\Cache\Engine
* @return \Cake\Cache\Engine
*/
public static function engine($config) {
if (!static::$_enabled) {
@@ -345,7 +345,7 @@ public static function clearGroup($group, $config = 'default') {
*
* @param string $group group name or null to retrieve all group mappings
* @return array map of group and all configuration that has the same group
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
public static function groupConfigs($group = null) {
if ($group === null) {
@@ -48,7 +48,7 @@ protected function _resolveClassName($class) {
*
* @param string $class The classname that is missing.
* @param string $plugin The plugin the cache is missing in.
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
protected function _throwMissingClassError($class, $plugin) {
throw new Error\Exception(sprintf('Cache engine %s is not available.', $class));
@@ -62,7 +62,7 @@ protected function _throwMissingClassError($class, $plugin) {
* @param string $alias The alias of the object.
* @param array $config An array of settings to use for the cache engine.
* @return CacheEngine The constructed CacheEngine class.
* @throws Cake\Error\Exception when an object doesn't implement
* @throws \Cake\Error\Exception when an object doesn't implement
* the correct interface.
*/
protected function _create($class, $alias, $config) {
@@ -325,7 +325,7 @@ protected function _clearDirectory($path, $now, $threshold) {
* @param string $key
* @param integer $offset
* @return void
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
public function decrement($key, $offset = 1) {
throw new Error\Exception('Files cannot be atomically decremented.');
@@ -337,7 +337,7 @@ public function decrement($key, $offset = 1) {
* @param string $key
* @param integer $offset
* @return void
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
public function increment($key, $offset = 1) {
throw new Error\Exception('Files cannot be atomically incremented.');
@@ -95,7 +95,7 @@ class MemcachedEngine extends CacheEngine {
*
* @param array $config array of setting for the engine
* @return boolean True if the engine has been successfully initialized, false if not
* @throws Cake\Error\Exception when you try use authentication without Memcached compiled with SASL support
* @throws \Cake\Error\Exception when you try use authentication without Memcached compiled with SASL support
*/
public function init($config = []) {
if (!class_exists('Memcached')) {
@@ -151,7 +151,7 @@ public function init($config = []) {
/**
* Settings the memcached instance
*
* @throws Cake\Error\Exception when the Memcached extension is not built with the desired serializer engine
* @throws \Cake\Error\Exception when the Memcached extension is not built with the desired serializer engine
*/
protected function _setOptions() {
$this->_Memcached->setOption(\Memcached::OPT_LIBKETAMA_COMPATIBLE, true);
@@ -246,7 +246,7 @@ public function read($key) {
* @param string $key Identifier for the data
* @param integer $offset How much to increment
* @return New incremented value, false otherwise
* @throws Cake\Error\Exception when you try to increment with compress = true
* @throws \Cake\Error\Exception when you try to increment with compress = true
*/
public function increment($key, $offset = 1) {
$key = $this->_key($key);
@@ -260,7 +260,7 @@ public function increment($key, $offset = 1) {
* @param string $key Identifier for the data
* @param integer $offset How much to subtract
* @return New decremented value, false otherwise
* @throws Cake\Error\Exception when you try to decrement with compress = true
* @throws \Cake\Error\Exception when you try to decrement with compress = true
*/
public function decrement($key, $offset = 1) {
$key = $this->_key($key);
@@ -94,7 +94,7 @@ public function __construct($path = null, $section = null) {
* @param string $key The identifier to read from. If the key has a . it will be treated
* as a plugin prefix. The chosen file must be on the engine's path.
* @return array Parsed configuration values.
* @throws Cake\Error\ConfigureException when files don't exist.
* @throws \Cake\Error\ConfigureException when files don't exist.
* Or when files contain '..' as this could lead to abusive reads.
*/
public function read($key) {
@@ -57,7 +57,7 @@ public function __construct($path = null) {
* @param string $key The identifier to read from. If the key has a . it will be treated
* as a plugin prefix.
* @return array Parsed configuration values.
* @throws Cake\Error\ConfigureException when files don't exist or they don't contain `$config`.
* @throws \Cake\Error\ConfigureException when files don't exist or they don't contain `$config`.
* Or when files contain '..' as this could lead to abusive reads.
*/
public function read($key) {
@@ -45,7 +45,7 @@ class FixtureTask extends BakeTask {
/**
* Schema instance
*
* @var Cake\Model\Schema
* @var \Cake\Model\Schema
*/
protected $_Schema = null;
@@ -337,7 +337,7 @@ public function getRealClassName($type, $class, $plugin = null) {
* @param string $type The type of thing having a test generated.
* @param string $plugin The plugin name.
* @return string
* @throws Cake\Error\Exception When invalid object types are requested.
* @throws \Cake\Error\Exception When invalid object types are requested.
*/
public function mapType($type, $plugin) {
$type = ucfirst($type);
@@ -357,7 +357,7 @@ public function mapType($type, $plugin) {
* @param string $type The type the class having a test
* generated for is in.
* @return array Array of (class, type)
* @throws Cake\Error\Exception on invalid types.
* @throws \Cake\Error\Exception on invalid types.
*/
public function getBaseType($type) {
if (empty($this->baseTypes[$type])) {
@@ -136,7 +136,7 @@ public function isRequired() {
*
* @param string $value
* @return boolean
* @throws Cake\Error\ConsoleException
* @throws \Cake\Error\ConsoleException
*/
public function validChoice($value) {
if (empty($this->_choices)) {
@@ -77,7 +77,7 @@ class ConsoleInputOption {
* @param boolean $boolean Whether this option is a boolean option. Boolean options don't consume extra tokens
* @param string $default The default value for this option.
* @param array $choices Valid choices for this option.
* @throws Cake\Error\ConsoleException
* @throws \Cake\Error\ConsoleException
*/
public function __construct($name, $short = null, $help = '', $boolean = false, $default = '', $choices = []) {
if (is_array($name) && isset($name['name'])) {
@@ -181,7 +181,7 @@ public function isBoolean() {
*
* @param string $value
* @return boolean
* @throws Cake\Error\ConsoleException
* @throws \Cake\Error\ConsoleException
*/
public function validChoice($value) {
if (empty($this->_choices)) {
@@ -453,7 +453,7 @@ public function subcommands() {
* @param string $command The subcommand to use. If this parameter is a subcommand, that has a parser,
* That parser will be used to parse $argv instead.
* @return Array [$params, $args]
* @throws Cake\Error\ConsoleException When an invalid parameter is encountered.
* @throws \Cake\Error\ConsoleException When an invalid parameter is encountered.
*/
public function parse($argv, $command = null) {
if (isset($this->_subcommands[$command]) && $this->_subcommands[$command]->parser()) {
@@ -545,7 +545,7 @@ protected function _parseLongOption($option, $params) {
* @param string $option The option to parse.
* @param array $params The params to append the parsed value into
* @return array Params with $option added in.
* @throws Cake\Error\ConsoleException When unknown short options are encountered.
* @throws \Cake\Error\ConsoleException When unknown short options are encountered.
*/
protected function _parseShortOption($option, $params) {
$key = substr($option, 1);
@@ -569,7 +569,7 @@ protected function _parseShortOption($option, $params) {
* @param string $name The name to parse.
* @param array $params The params to append the parsed value into
* @return array Params with $option added in.
* @throws Cake\Error\ConsoleException
* @throws \Cake\Error\ConsoleException
*/
protected function _parseOption($name, $params) {
if (!isset($this->_options[$name])) {
@@ -616,7 +616,7 @@ protected function _optionExists($name) {
* @param string $argument The argument to append
* @param array $args The array of parsed args to append to.
* @return array Args
* @throws Cake\Error\ConsoleException
* @throws \Cake\Error\ConsoleException
*/
protected function _parseArg($argument, $args) {
if (empty($this->_args)) {
@@ -87,7 +87,7 @@ protected function _initConstants() {
* Defines current working environment.
*
* @return void
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
protected function _initEnvironment() {
if (!$this->_bootstrap()) {
@@ -132,7 +132,7 @@ public function dispatch() {
* Dispatch a request.
*
* @return boolean
* @throws Cake\Error\MissingShellMethodException
* @throws \Cake\Error\MissingShellMethodException
*/
protected function _dispatch() {
$shell = $this->shiftArgs();
@@ -184,7 +184,7 @@ protected function _dispatch() {
*
* @param string $shell Optionally the name of a plugin
* @return mixed An object
* @throws Cake\Error\MissingShellException when errors are encountered.
* @throws \Cake\Error\MissingShellException when errors are encountered.
*/
protected function _getShell($shell) {
list($plugin, $shell) = pluginSplit($shell);
@@ -59,7 +59,7 @@ protected function _resolveClassName($class) {
*
* @param string $class The classname that is missing.
* @param string $plugin The plugin the task is missing in.
* @throws Cake\Error\MissingTaskException
* @throws \Cake\Error\MissingTaskException
*/
protected function _throwMissingClassError($class, $plugin) {
throw new Error\MissingTaskException([
@@ -102,7 +102,7 @@ public function initialize(Component $Component) {
*
* @param array $config configuration array, see docs
* @return void
* @throws Cake\Error\AclException When required keys are missing.
* @throws \Cake\Error\AclException When required keys are missing.
*/
public function build(array $config) {
if (empty($config['roles'])) {
@@ -62,7 +62,7 @@ class AclComponent extends Component {
*
* @param ComponentRegistry $collection
* @param array $settings
* @throws Cake\Error\Exception when Acl.classname could not be loaded.
* @throws \Cake\Error\Exception when Acl.classname could not be loaded.
*/
public function __construct(ComponentRegistry $collection, $settings = array()) {
parent::__construct($collection, $settings);
@@ -86,7 +86,7 @@ public function __construct(ComponentRegistry $collection, $settings = array())
*
* @param AclInterface|string $adapter Instance of AclInterface or a string name of the class to use. (optional)
* @return AclInterface|void either null, or the adapter implementation.
* @throws Cake\Error\Exception when the given class is not an instance of AclInterface
* @throws \Cake\Error\Exception when the given class is not an instance of AclInterface
*/
public function adapter($adapter = null) {
if ($adapter) {
@@ -31,7 +31,7 @@ class ActionsAuthorize extends BaseAuthorize {
* Authorize a user using the AclComponent.
*
* @param array $user The user to authorize
* @param Cake\Network\Request $request The request needing authorization.
* @param \Cake\Network\Request $request The request needing authorization.
* @return boolean
*/
public function authorize($user, Request $request) {
@@ -128,7 +128,7 @@ protected function _findUser($username, $password = null) {
* Return password hasher object
*
* @return AbstractPasswordHasher Password hasher instance
* @throws Cake\Error\Exception If password hasher class not found or
* @throws \Cake\Error\Exception If password hasher class not found or
* it does not extend AbstractPasswordHasher
*/
public function passwordHasher() {
@@ -161,8 +161,8 @@ public function passwordHasher() {
/**
* Authenticate a user based on the request information.
*
* @param Cake\Network\Request $request Request to get authentication information from.
* @param Cake\Network\Response $response A response object that can have headers added.
* @param \Cake\Network\Request $request Request to get authentication information from.
* @param \Cake\Network\Response $response A response object that can have headers added.
* @return mixed Either false on failure, or an array of user data on success.
*/
abstract public function authenticate(Request $request, Response $response);
@@ -184,7 +184,7 @@ public function logout($user) {
* Get a user based on information in the request. Primarily used by stateless authentication
* systems like basic and digest auth.
*
* @param Cake\Network\Request $request Request object.
* @param \Cake\Network\Request $request Request object.
* @return mixed Either false or an array of user information
*/
public function getUser(Request $request) {
@@ -196,8 +196,8 @@ public function getUser(Request $request) {
* the unauthenticated request has been dealt with and no more action is required by
* AuthComponent or void (default).
*
* @param Cake\Network\Request $request A request object.
* @param Cake\Network\Response $response A response object.
* @param \Cake\Network\Request $request A request object.
* @param \Cake\Network\Response $response A response object.
* @return void
*/
public function unauthenticated(Request $request, Response $response) {
@@ -85,7 +85,7 @@ public function __construct(ComponentRegistry $registry, $settings = array()) {
* Checks user authorization.
*
* @param array $user Active user data
* @param Cake\Network\Request $request
* @param \Cake\Network\Request $request
* @return boolean
*/
abstract public function authorize($user, Request $request);
@@ -95,7 +95,7 @@ public function __construct(ComponentRegistry $registry, $settings = array()) {
*
* @param Controller $controller null to get, a controller to set.
* @return mixed
* @throws Cake\Error\Exception
* @throws \Cake\Error\Exception
*/
public function controller(Controller $controller = null) {
if ($controller) {
@@ -112,7 +112,7 @@ public function controller(Controller $controller = null) {
* Get the action path for a given request. Primarily used by authorize objects
* that need to get information about the plugin, controller, and action being invoked.
*
* @param Cake\Network\Request $request The request a path is needed for.
* @param \Cake\Network\Request $request The request a path is needed for.
* @param string $path
* @return string the action path for the given request.
*/
Oops, something went wrong.

0 comments on commit 6c32004

Please sign in to comment.
You can’t perform that action at this time.