Fix extension definitions
Before, extensions were missing the definition of mandatory methods. At the moment, it's not a problem because the coding guidelines are not enforced by the code. But in the future, it will break. Now, extensions have all mandatory method definitions.
This commit is contained in:
parent
17f42e4b53
commit
26be877e7a
21 changed files with 130 additions and 22 deletions
|
|
@ -9,6 +9,14 @@ class ImageProxyExtension extends Minz_Extension {
|
|||
const SCHEME_INCLUDE = '';
|
||||
const URL_ENCODE = '1';
|
||||
|
||||
public function install() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->registerHook('entry_before_display',
|
||||
array('ImageProxyExtension', 'setImageProxyHook'));
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Image Proxy",
|
||||
"author": "Frans de Jonge",
|
||||
"description": "No insecure content warnings or disappearing images.",
|
||||
"version": 0.5,
|
||||
"version": 0.6,
|
||||
"entrypoint": "ImageProxy",
|
||||
"type": "user"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue