From 6adfed9db0dc47882374657f8d45022732e9732c Mon Sep 17 00:00:00 2001 From: Clement Boirie Date: Mon, 1 Mar 2021 18:26:23 +0100 Subject: [PATCH] add replacement for the new Blocks filter --- src/Command/ScaffoldPluginCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Command/ScaffoldPluginCommand.php b/src/Command/ScaffoldPluginCommand.php index 662e715..38d67cb 100644 --- a/src/Command/ScaffoldPluginCommand.php +++ b/src/Command/ScaffoldPluginCommand.php @@ -266,6 +266,9 @@ protected function execute( InputInterface $input, OutputInterface $output ) { $pluginViewFolderName = $this->askAndConfirm( $io, "What is your plugin's view folder name ? (e.g: 'my-plugin') " ); self::doStrReplace( $installPath, 'bea-pb', $pluginViewFolderName ); + // blocks filter + self::doStrReplace( $installPath, 'bea_pb_blocks', str_replace( '-', '_', $pluginName ) . '_blocks' ); + if ( $is_psr_4 && false === $no_autoload ) { /**