Skip to content

Commit

Permalink
Add base plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
liszkapawel committed Feb 9, 2024
1 parent 2396b5a commit b198c1d
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 431 deletions.
43 changes: 0 additions & 43 deletions .github/dependabot.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.0", "8.1"]
symfony: ["5.4.*", "^6.0"]
sylius: ["^1.12"]
node: ["14.x", "16.x", "18.x"]
mysql: ["5.7", "8.0"]
php: [ "8.0", "8.1" ]
symfony: [ "5.4.*", "^6.0" ]
sylius: [ "^1.12" ]
node: [ "14.x" ]
mysql: [ "8.0" ]

env:
APP_ENV: test
Expand Down
2 changes: 1 addition & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ default:
FriendsOfBehat\SymfonyExtension:
bootstrap: tests/Application/config/bootstrap.php
kernel:
class: Tests\Acme\SyliusExamplePlugin\Application\Kernel
class: Tests\BitBag\SyliusImojePlugin\Application\Kernel

FriendsOfBehat\VariadicExtension: ~

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sylius/plugin-skeleton",
"name": "bitbag/imoje-plugin",
"type": "sylius-plugin",
"description": "Acme example plugin for Sylius.",
"description": "Imoje plugin for Sylius.",
"keywords": [
"sylius",
"sylius-plugin"
Expand Down Expand Up @@ -64,8 +64,8 @@
},
"autoload": {
"psr-4": {
"Acme\\SyliusExamplePlugin\\": "src/",
"Tests\\Acme\\SyliusExamplePlugin\\": "tests/"
"BitBag\\SyliusImojePlugin\\": "src/",
"Tests\\BitBag\\SyliusImojePlugin\\": "tests/"
}
},
"autoload-dev": {
Expand Down
1 change: 0 additions & 1 deletion config/admin_routing.yml

This file was deleted.

2 changes: 0 additions & 2 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="Acme\SyliusExamplePlugin\Controller\GreetingController" autowire="true" autoconfigure="true" public="true" />
<!-- Put your services here -->
</services>
</container>
13 changes: 0 additions & 13 deletions config/shop_routing.yml

This file was deleted.

17 changes: 0 additions & 17 deletions features/dynamically_greeting_a_customer.feature

This file was deleted.

42 changes: 0 additions & 42 deletions features/running_a_sylius_feature.feature

This file was deleted.

17 changes: 0 additions & 17 deletions features/statically_greeting_a_customer.feature

This file was deleted.

4 changes: 2 additions & 2 deletions phpspec.yml.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
suites:
main:
namespace: Acme\SyliusExamplePlugin
psr4_prefix: Acme\SyliusExamplePlugin
namespace: BitBag\SyliusImojePlugin
psr4_prefix: BitBag\SyliusImojePlugin
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
colors="true"
bootstrap="tests/Application/config/bootstrap.php">
<testsuites>
<testsuite name="AcmeSyliusExamplePlugin Test Suite">
<testsuite name="BitBagSyliusImojePlugin Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
3 changes: 0 additions & 3 deletions public/greeting.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Acme\SyliusExamplePlugin;
namespace BitBag\SyliusImojePlugin;

use Sylius\Bundle\CoreBundle\Application\SyliusPluginTrait;
use Symfony\Component\HttpKernel\Bundle\Bundle;

final class AcmeSyliusExamplePlugin extends Bundle
final class BitBagSyliusImojePlugin extends Bundle
{
use SyliusPluginTrait;

Expand Down
33 changes: 0 additions & 33 deletions src/Controller/GreetingController.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Acme\SyliusExamplePlugin\DependencyInjection;
namespace BitBag\SyliusImojePlugin\DependencyInjection;

use Sylius\Bundle\CoreBundle\DependencyInjection\PrependDoctrineMigrationsTrait;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
Expand All @@ -11,7 +11,7 @@
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

final class AcmeSyliusExampleExtension extends AbstractResourceExtension implements PrependExtensionInterface
final class BitBagSyliusImojeExtension extends AbstractResourceExtension implements PrependExtensionInterface
{
use PrependDoctrineMigrationsTrait;

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

protected function getMigrationsDirectory(): string
{
return '@AcmeSyliusExamplePlugin/migrations';
return '@BitBagSyliusImojePlugin/migrations';
}

protected function getNamespacesOfMigrationsExecutedBefore(): array
Expand Down
22 changes: 0 additions & 22 deletions src/DependencyInjection/Configuration.php

This file was deleted.

9 changes: 9 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
"ref": "518ac22defa04a8a1d82479ed362e2921487adf0"
}
},
"phpstan/phpstan": {
"version": "1.10",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "1.0",
"ref": "5e490cc197fb6bb1ae22e5abbc531ddc633b6767"
}
},
"phpunit/phpunit": {
"version": "9.6",
"recipe": {
Expand Down
8 changes: 0 additions & 8 deletions templates/dynamic_greeting.html.twig

This file was deleted.

5 changes: 0 additions & 5 deletions templates/static_greeting.html.twig

This file was deleted.

4 changes: 2 additions & 2 deletions tests/Application/.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ APP_SECRET=EDITME
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
DATABASE_URL=mysql://[email protected]/acme_sylius_example_plugin_%kernel.environment%?serverVersion=5.7
DATABASE_URL=mysql://[email protected]/bitbag_sylius_imoje_plugin%kernel.environment%?serverVersion=5.7
###< doctrine/doctrine-bundle ###

###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=acme_plugin_development
JWT_PASSPHRASE=YOUR_SECRET_PASSPHRASE
###< lexik/jwt-authentication-bundle ###

###> symfony/mailer ###
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/.env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
APP_SECRET='ch4mb3r0f5ecr3ts'

KERNEL_CLASS='Tests\Acme\SyliusExamplePlugin\Application\Kernel'
KERNEL_CLASS='Tests\BitBag\SyliusImojePlugin\Application\Kernel'

###> symfony/messenger ###
# Sync transport turned for testing env for the ease of testing
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Tests\Acme\SyliusExamplePlugin\Application;
namespace Tests\BitBag\SyliusImojePlugin\Application;

use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer;
use Sylius\Bundle\CoreBundle\Application\Kernel as SyliusKernel;
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

use Tests\Acme\SyliusExamplePlugin\Application\Kernel;
use Tests\BitBag\SyliusImojePlugin\Application\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true],
Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true],
Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true],
Acme\SyliusExamplePlugin\AcmeSyliusExamplePlugin::class => ['all' => true],
BitBag\SyliusImojePlugin\BitBagSyliusImojePlugin::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['test' => true, 'test_cached' => true],
Expand Down
Loading

0 comments on commit b198c1d

Please sign in to comment.