Skip to content

Commit

Permalink
Change plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Jun 15, 2018
1 parent 78504bd commit 7877149
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 26 deletions.
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,13 @@
<img src="http://demo.sylius.org/assets/shop/img/logo.png" />
</a>
</p>
<h1 align="center">Plugin Skeleton</h1>
<p align="center">
<a href="https://packagist.org/packages/sylius/plugin-skeleton" title="License">
<img src="https://img.shields.io/packagist/l/sylius/plugin-skeleton.svg" />
</a>
<a href="https://packagist.org/packages/sylius/plugin-skeleton" title="Version">
<img src="https://img.shields.io/packagist/v/sylius/plugin-skeleton.svg" />
</a>
<a href="http://travis-ci.org/Sylius/PluginSkeleton" title="Build status">
<img src="https://img.shields.io/travis/Sylius/PluginSkeleton/master.svg" />
</a>
<a href="https://scrutinizer-ci.com/g/Sylius/PluginSkeleton/" title="Scrutinizer">
<img src="https://img.shields.io/scrutinizer/g/Sylius/PluginSkeleton.svg" />
</a>
</p>
<h1 align="center">Invoicing Plugin</h1>

## Installation

1. Run `composer create-project sylius/plugin-skeleton ProjectName`.

2. From the plugin skeleton root directory, run the following commands:
2. From the plugin root directory, run the following commands:

```bash
$ (cd tests/Application && yarn install)
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": "sylius/invoicing-plugin",
"type": "sylius-plugin",
"description": "Acme example plugin for Sylius.",
"description": "Invoicing plugin for Sylius.",
"license": "MIT",
"require": {
"php": "^7.1",
Expand Down Expand Up @@ -29,8 +29,8 @@
"prefer-stable": true,
"autoload": {
"psr-4": {
"Acme\\SyliusExamplePlugin\\": "src/",
"Tests\\Acme\\SyliusExamplePlugin\\": "tests/"
"Sylius\\InvoicingPlugin\\": "src/",
"Tests\\Sylius\\InvoicingPlugin\\": "tests/"
}
},
"autoload-dev": {
Expand Down
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: Sylius\InvoicingPlugin
psr4_prefix: Sylius\InvoicingPlugin
5 changes: 2 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.6/phpunit.xsd"
backupGlobals="false"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="AcmeSyliusExamplePlugin Test Suite">
<testsuite name="SyliusInvoicingPlugin Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function registerBundles(): array
new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusApiBundle
new \Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle(),

new \Acme\SyliusExamplePlugin\AcmeSyliusExamplePlugin(),
new \Sylius\InvoicingPlugin\SyliusInvoicingPlugin(),
]);
}

Expand Down

0 comments on commit 7877149

Please sign in to comment.