Skip to content

Commit

Permalink
chore(sf): rollback directory structure to avoid bc breaks keep it in…
Browse files Browse the repository at this point in the history
…stead for a new major version
  • Loading branch information
maxperei committed Jan 23, 2025
1 parent b75b9de commit a8c0f85
Show file tree
Hide file tree
Showing 37 changed files with 18 additions and 22 deletions.
5 changes: 0 additions & 5 deletions config/config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions config/routes/admin/attributes.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
imports:
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/config/config.yaml" }
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/config.yaml" }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
synolia_scheduled_command:
resource: "@SynoliaSyliusSchedulerCommandPlugin/config/routes/admin/**.yaml"
resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/admin_routing.yaml"
prefix: '/%sylius_admin.path_name%'
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class SynoliaSyliusSchedulerCommandExtension extends Extension implements
*/
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new YamlFileLoader($container, new FileLocator(\dirname(__DIR__, 2) . '/config'));
$loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.yaml');
}

Expand All @@ -39,7 +39,7 @@ protected function getMigrationsNamespace(): string

protected function getMigrationsDirectory(): string
{
return '@SynoliaSyliusSchedulerCommandPlugin/migrations';
return '@SynoliaSyliusSchedulerCommandPlugin/Migrations';
}

protected function getNamespacesOfMigrationsExecutedBefore(): array
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,10 @@ synolia_admin_scheduled_commands:
vars:
index:
icon: 'box'
type: sylius.resource
type: sylius.resource

controllers:
resource:
path: ../../Controller/
namespace: Synolia\SyliusSchedulerCommandPlugin\Controller
type: attribute
5 changes: 5 additions & 0 deletions src/Resources/config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
imports:
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/resources.yaml" }
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/grids.yaml" }
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/services.yaml" }
- { resource: "@SynoliaSyliusSchedulerCommandPlugin/Resources/config/ui.yaml" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions config/services.yaml → src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ services:
autoconfigure: true

Synolia\SyliusSchedulerCommandPlugin\:
resource: '../src/*'
exclude: '../src/{Entity,SynoliaSyliusSchedulerCommandPlugin.php}'
resource: '../../*'
exclude: '../../{Entity,SynoliaSyliusSchedulerCommandPlugin.php}'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/SynoliaSyliusSchedulerCommandPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@
final class SynoliaSyliusSchedulerCommandPlugin extends Bundle
{
use SyliusPluginTrait;

public function getPath(): string
{
return \dirname(__DIR__);
}
}

0 comments on commit a8c0f85

Please sign in to comment.