Remove obsolete register script traces
This commit is contained in:
parent
c68bce2f3d
commit
7dbede12fb
|
@ -274,7 +274,6 @@ class Manager
|
|||
$this->enabledDirs[$name] = $link;
|
||||
|
||||
$this->loadModule($name);
|
||||
$this->getModule($name)->launchRegisterScript();
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
|
@ -101,13 +101,6 @@ class Module
|
|||
*/
|
||||
private $runScript;
|
||||
|
||||
/**
|
||||
* Module initialization script
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $registerScript;
|
||||
|
||||
/**
|
||||
* Module configuration script
|
||||
*
|
||||
|
@ -152,18 +145,17 @@ class Module
|
|||
*/
|
||||
public function __construct(ApplicationBootstrap $app, $name, $basedir)
|
||||
{
|
||||
$this->app = $app;
|
||||
$this->name = $name;
|
||||
$this->basedir = $basedir;
|
||||
$this->cssdir = $basedir . '/public/css';
|
||||
$this->libdir = $basedir . '/library';
|
||||
$this->configdir = $basedir . '/config';
|
||||
$this->localedir = $basedir . '/application/locale';
|
||||
$this->formdir = $basedir . '/application/forms';
|
||||
$this->controllerdir = $basedir . '/application/controllers';
|
||||
$this->runScript = $basedir . '/run.php';
|
||||
$this->registerScript = $basedir . '/register.php';
|
||||
$this->configScript = $basedir . '/configuration.php';
|
||||
$this->app = $app;
|
||||
$this->name = $name;
|
||||
$this->basedir = $basedir;
|
||||
$this->cssdir = $basedir . '/public/css';
|
||||
$this->libdir = $basedir . '/library';
|
||||
$this->configdir = $basedir . '/config';
|
||||
$this->localedir = $basedir . '/application/locale';
|
||||
$this->formdir = $basedir . '/application/forms';
|
||||
$this->controllerdir = $basedir . '/application/controllers';
|
||||
$this->runScript = $basedir . '/run.php';
|
||||
$this->configScript = $basedir . '/configuration.php';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -511,16 +503,6 @@ class Module
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run module registration script
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function launchRegisterScript()
|
||||
{
|
||||
return $this->includeScript($this->registerScript);
|
||||
}
|
||||
|
||||
/**
|
||||
* Run module bootstrap script
|
||||
*
|
||||
|
@ -540,14 +522,13 @@ class Module
|
|||
*/
|
||||
protected function includeScript($file)
|
||||
{
|
||||
if (is_readable($file) === true) {
|
||||
if (file_exists($file) && is_readable($file) === true) {
|
||||
include($file);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Run module config script
|
||||
*/
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
* register.php
|
||||
*
|
||||
* This file runs only on installation
|
||||
*/
|
Loading…
Reference in New Issue