Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing namespace declaration for global ns #9

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 30 additions & 23 deletions ft-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@
// figuren-theater/ft-platform !
//

// ./wp-config.php
define( 'FT_ROOT_DIR', __DIR__ );
define( 'FT_WP_DIR', '/wp' );

// ./wp-config.default.php
define( 'FT_VENDOR_DIR', FT_ROOT_DIR . '/vendor' );
define( 'FT_VENDOR_URL', 'https://localhost/content/v' ); // Symlinked to DOCROOT/vendor.

// ./wp-config.{{ENV}}.php
define( 'FT_MAINTENANCE_MODE', false );

namespace Figuren_Theater {
/**
* Get Version number of ft-platform
Expand All @@ -31,16 +20,34 @@
function get_platform_version() : string {}
}

//
// figuren-theater/ft-maitenance !
//
namespace {
//
// figuren-theater/ft-platform !
//

// ./wp-config.php
define( 'FT_ROOT_DIR', __DIR__ );
define( 'FT_WP_DIR', '/wp' );

// ./content/mu-plugins/FT/ft-maintenance/inc/mode/namespace.php
// ./content/mu-plugins/FT/ft-maintenance/inc/mode/error-template.php
// ./content/db-error.php
// ./content/maintenance.php
// ./content/php-error.php
define( 'FT_ERROR_MAIL_TO', 'f.t web-Crew <[email protected]>' );
define( 'FT_ERROR_MAIL_FROM', '[email protected]' );
define( 'FT_ERROR_MAIL_INTERVAL', 300 );
define( 'FT_ERROR_SUPPRESS_EMAIL', true );
// ./wp-config.default.php
define( 'FT_VENDOR_DIR', FT_ROOT_DIR . '/vendor' );
define( 'FT_VENDOR_URL', 'https://localhost/content/v' ); // Symlinked to DOCROOT/vendor.

// ./wp-config.{{ENV}}.php
define( 'FT_MAINTENANCE_MODE', false );

//
// figuren-theater/ft-maitenance !
//

// ./content/mu-plugins/FT/ft-maintenance/inc/mode/namespace.php
// ./content/mu-plugins/FT/ft-maintenance/inc/mode/error-template.php
// ./content/db-error.php
// ./content/maintenance.php
// ./content/php-error.php
define( 'FT_ERROR_MAIL_TO', 'f.t web-Crew <[email protected]>' );
define( 'FT_ERROR_MAIL_FROM', '[email protected]' );
define( 'FT_ERROR_MAIL_INTERVAL', 300 );
define( 'FT_ERROR_SUPPRESS_EMAIL', true );

}