mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12847] Allow the extensions to say if they can be enabled
PHPBB3-12847
This commit is contained in:
@@ -40,6 +40,7 @@ class base implements \phpbb\extension\extension_interface
|
||||
*
|
||||
* @param ContainerInterface $container Container object
|
||||
* @param \phpbb\finder $extension_finder
|
||||
* @param \phpbb\db\migrator $migrator
|
||||
* @param string $extension_name Name of this extension (from ext.manager)
|
||||
* @param string $extension_path Relative path to this extension
|
||||
*/
|
||||
@@ -53,6 +54,14 @@ class base implements \phpbb\extension\extension_interface
|
||||
$this->extension_path = $extension_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function is_enableable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Single enable step that installs any included migrations
|
||||
*
|
||||
|
Reference in New Issue
Block a user