Skip to content

Commit 6643977

Browse files
committed
adjust namespace for controllers
Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
1 parent 6ed2d82 commit 6643977

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

includes/controller/class-main.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace FairExplorer\Controller;
99

10+
use FairExplorer\Controller\Typo3\Typo3;
11+
use FairExplorer\Controller\WordPress\Playground;
12+
1013
class Main extends \FairExplorer\Model\Singleton {
1114
/**
1215
* Constructor.

includes/controller/typo3/class-typo3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Registers the extensions asset type and fetches data from AspireCloud.
77
*/
88

9-
namespace FairExplorer\Controller;
9+
namespace FairExplorer\Controller\Typo3;
1010

1111
class Typo3 {
1212
/**

includes/controller/wordpress/class-playground.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Handles REST API endpoints for generating WordPress Playground blueprints.
77
*/
88

9-
namespace FairExplorer\Controller;
9+
namespace FairExplorer\Controller\WordPress;
1010

1111
use WP_REST_Request;
1212
use WP_REST_Response;

includes/views/shared/single.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
$preview_url = '';
5050
if ( $theme_slug ) {
5151
$zip_url = $asset_info->get_download_link();
52-
$preview_url = FairExplorer\Controller\Playground::get_playground_url( [ 'theme' => $zip_url ] );
52+
$preview_url = FairExplorer\Controller\WordPress\Playground::get_playground_url( [ 'theme' => $zip_url ] );
5353
}
5454
?>
5555
<a href="<?php echo esc_url( $preview_url ); ?>" class="button button-primary" target="_blank" rel="noopener noreferrer">

includes/views/wordpress/themes/archive/theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
$asset_info = $args['asset_info'] ?? $args['theme_info'] ?? null;
88
if ( $asset_info && $asset_info->get_slug() ) {
9-
$args['preview_url'] = FairExplorer\Controller\Playground::get_playground_url( [ 'theme' => $asset_info->get_download_link() ] );
9+
$args['preview_url'] = FairExplorer\Controller\WordPress\Playground::get_playground_url( [ 'theme' => $asset_info->get_download_link() ] );
1010
}
1111
require AE_DIR_PATH . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'shared' . DIRECTORY_SEPARATOR . 'archive-card.php';

0 commit comments

Comments
 (0)