From e5dadec8afe57eb768f9150f4376c1a16a0cdf69 Mon Sep 17 00:00:00 2001 From: Alex Standiford Date: Wed, 25 Aug 2021 17:28:48 -0600 Subject: [PATCH] Moves files into separate directories --- blocks.php | 6 +++--- Block.php => lib/abstracts/Block.php | 0 Block_Instance.php => lib/factories/Block_Instance.php | 0 Blocks.php => lib/loaders/Blocks.php | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename Block.php => lib/abstracts/Block.php (100%) rename Block_Instance.php => lib/factories/Block_Instance.php (100%) rename Blocks.php => lib/loaders/Blocks.php (100%) diff --git a/blocks.php b/blocks.php index 1b88f0e..ea67389 100644 --- a/blocks.php +++ b/blocks.php @@ -5,9 +5,9 @@ // Add this loader. add_action( 'underpin/before_setup', function ( $file, $class ) { - require_once( plugin_dir_path( __FILE__ ) . 'Blocks.php' ); - require_once( plugin_dir_path( __FILE__ ) . 'Block.php' ); - require_once( plugin_dir_path( __FILE__ ) . 'Block_Instance.php' ); + require_once( plugin_dir_path( __FILE__ ) . 'lib/loaders/Blocks.php' ); + require_once( plugin_dir_path( __FILE__ ) . 'lib/abstracts/Block.php' ); + require_once( plugin_dir_path( __FILE__ ) . 'lib/factories/Block_Instance.php' ); Underpin\underpin()->get( $file, $class )->loaders()->add( 'blocks', [ 'registry' => 'Underpin_Blocks\Loaders\Blocks', ] ); diff --git a/Block.php b/lib/abstracts/Block.php similarity index 100% rename from Block.php rename to lib/abstracts/Block.php diff --git a/Block_Instance.php b/lib/factories/Block_Instance.php similarity index 100% rename from Block_Instance.php rename to lib/factories/Block_Instance.php diff --git a/Blocks.php b/lib/loaders/Blocks.php similarity index 100% rename from Blocks.php rename to lib/loaders/Blocks.php