Declare $containerBuilder global in some files

As these may be imported files, it is necessary to add this.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-06-17 14:23:33 -03:00
parent d984b07ba6
commit b793fbd5b9
7 changed files with 9 additions and 5 deletions

View File

@ -16,6 +16,8 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $containerBuilder;
require_once ROOT_PATH . 'libraries/common.inc.php';
/** @var Response $response */

View File

@ -22,7 +22,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $cfg, $pmaThemeImage;
global $cfg, $containerBuilder, $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -19,7 +19,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $cfg, $db, $table, $text_dir;
global $cfg, $containerBuilder, $db, $table, $text_dir;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -17,7 +17,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db, $url_query;
global $containerBuilder, $db, $url_query;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -29,7 +29,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db, $table, $url_params;
global $containerBuilder, $db, $table, $url_params;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -17,7 +17,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $url_query;
global $containerBuilder, $url_query;
require_once ROOT_PATH . 'libraries/common.inc.php';
require_once ROOT_PATH . 'libraries/tbl_common.inc.php';

View File

@ -16,6 +16,8 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $containerBuilder;
require_once ROOT_PATH . 'libraries/common.inc.php';
/** @var Response $response */