Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Nov 29, 2022
1 parent d224b08 commit ab05884
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<forms>
<form name="removeuselesscart_form" class="RemoveUselessCart\Form\RemoveUselessCartForm" />
</forms>

<!--
<commands>
<command class="RemoveUselessCart\Command\RemoveUselessCartCommand" />
</commands>

-->
<services>
<service id="removeuselesscart.eventlisteners" class="RemoveUselessCart\EventListeners\RemoveUselessCartEventListeners">
<tag name="kernel.event_subscriber"/>
Expand Down
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
</author>
</authors>
<type>classic</type>
<thelia>2.0</thelia>
<thelia>2.5.0</thelia>
<stability>beta</stability>
</module>
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add two ways to remove carts uselessly filling database : from the administratio
Add it in your main thelia composer.json file

```
composer require thelia/remove-useless-cart-module:~0.1
composer require thelia/remove-useless-cart-module:~2.0
```

## Usage
Expand Down
14 changes: 8 additions & 6 deletions RemoveUselessCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@

namespace RemoveUselessCart;

use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator;
use Thelia\Module\BaseModule;

class RemoveUselessCart extends BaseModule
{
/*
* You may now override BaseModuleInterface methods, such as:
* install, destroy, preActivation, postActivation, preDeactivation, postDeactivation
*
* Have fun !
*/
public static function configureServices(ServicesConfigurator $servicesConfigurator): void
{
$servicesConfigurator->load(self::getModuleCode().'\\', __DIR__)
->exclude([THELIA_MODULE_DIR . ucfirst(self::getModuleCode()). "/I18n/*"])
->autowire(true)
->autoconfigure(true);
}
}

0 comments on commit ab05884

Please sign in to comment.