Skip to content

Commit

Permalink
Replace our custom code fence with markdown standard fence.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jan 9, 2015
1 parent 64e4efc commit 71d3692
Show file tree
Hide file tree
Showing 71 changed files with 532 additions and 532 deletions.
4 changes: 2 additions & 2 deletions src/Auth/BasicAuthenticate.php
Expand Up @@ -28,13 +28,13 @@
* ### Using Basic auth
*
* In your controller's components array, add auth + the required config
* {{{
* ```
* public $components = [
* 'Auth' => [
* 'authenticate' => ['Basic']
* ]
* ];
* }}}
* ```
*
* You should also set `AuthComponent::$sessionKey = false;` in your AppController's
* beforeFilter() to prevent CakePHP from sending a session cookie to the client.
Expand Down
4 changes: 2 additions & 2 deletions src/Auth/ControllerAuthorize.php
Expand Up @@ -24,14 +24,14 @@
* using a controller callback. Your controller's isAuthorized() method should
* return a boolean to indicate whether or not the user is authorized.
*
* {{{
* ```
* public function isAuthorized($user) {
* if ($this->request->param('admin')) {
* return $user['role'] === 'admin';
* }
* return !empty($user);
* }
* }}}
* ```
*
* The above is simple implementation that would only authorize users of the
* 'admin' role to access admin routing.
Expand Down
4 changes: 2 additions & 2 deletions src/Auth/DigestAuthenticate.php
Expand Up @@ -26,13 +26,13 @@
* ### Using Digest auth
*
* In your controller's components array, add auth + the required config
* {{{
* ```
* public $components = [
* 'Auth' => [
* 'authenticate' => ['Digest']
* ]
* ];
* }}}
* ```
*
* You should also set `AuthComponent::$sessionKey = false;` in your AppController's
* beforeFilter() to prevent CakePHP from sending a session cookie to the client.
Expand Down
4 changes: 2 additions & 2 deletions src/Auth/FormAuthenticate.php
Expand Up @@ -22,13 +22,13 @@
* An authentication adapter for AuthComponent. Provides the ability to authenticate using POST
* data. Can be used by configuring AuthComponent to use it via the AuthComponent::$authenticate config.
*
* {{{
* ```
* $this->Auth->authenticate = [
* 'Form' => [
* 'scope' => ['Users.active' => 1]
* ]
* ]
* }}}
* ```
*
* When configuring FormAuthenticate you can pass in config to which fields, model and additional conditions
* are used. See FormAuthenticate::$_config for more information.
Expand Down
12 changes: 6 additions & 6 deletions src/Cache/Cache.php
Expand Up @@ -30,12 +30,12 @@
* You can configure Cache engines in your application's `Config/cache.php` file.
* A sample configuration would be:
*
* {{{
* ```
* Cache::config('shared', [
* 'className' => 'Cake\Cache\Engine\ApcEngine',
* 'prefix' => 'my_app_'
* ]);
* }}}
* ```
*
* This would configure an APC cache engine to the 'shared' alias. You could then read and write
* to that cache alias by using it for the `$config` parameter in the various Cache methods.
Expand Down Expand Up @@ -417,11 +417,11 @@ public static function clearGroup($group, $config = 'default')
/**
* Retrieve group names to config mapping.
*
* {{{
* ```
* Cache::config('daily', ['duration' => '1 day', 'groups' => ['posts']]);
* Cache::config('weekly', ['duration' => '1 week', 'groups' => ['posts', 'archive']]);
* $configs = Cache::groupConfigs('posts');
* }}}
* ```
*
* $config will equal to `['posts' => ['daily', 'weekly']]`
*
Expand Down Expand Up @@ -487,11 +487,11 @@ public static function enabled()
*
* Using a Closure to provide data, assume `$this` is a Table object:
*
* {{{
* ```
* $results = Cache::remember('all_articles', function () {
* return $this->find('all');
* });
* }}}
* ```
*
* @param string $key The cache key to read/store data at.
* @param callable $callable The callable that provides data in the case when
Expand Down

0 comments on commit 71d3692

Please sign in to comment.