for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright 2016, Cake Development Corporation (http://cakedc.com)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
* @copyright Copyright 2016, Cake Development Corporation (http://cakedc.com)
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
namespace CakeDC\Api\Service\Extension;
use CakeDC\Api\Service\ExtensionRegistry;
use Cake\Core\InstanceConfigTrait;
* Class Extension
* @package CakeDC\Api\Service\Extension
abstract class Extension
{
use InstanceConfigTrait;
protected $_defaultConfig = [];
* Extension constructor.
* @param ExtensionRegistry $registry An ExtensionRegistry instance.
* @param array $config Configuration.
public function __construct(ExtensionRegistry $registry, array $config = [])
$registry
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->config($config);
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.