setono/sylius-log-entry-plugin

Sylius plugin that makes it easy to work with log entries

Installs: 5 289

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 2

Type:symfony-bundle


README

Latest Version Latest Unstable Version Software License Build Status Quality Score

Adds a LogEntry entity you can use to log messages and associate them with your other entities. The test application has an example where we have added log entries to orders.

Installation

  • Install plugin using composer:

    $ composer require setono/sylius-log-entry-plugin
  • Add bundle to config/bundles.php:

    <?php
    // config/bundles.php
    
    return [
        // ...
        Setono\SyliusLogEntryPlugin\SetonoSyliusLogEntryPlugin::class => ['all' => true],
    ];
  • Configure entities & repositories like here:

  • Import routes:

    # config/routes/setono_sylius_log_entry.yaml
    setono_sylius_log_entry:
        resource: "@SetonoSyliusLogEntryPlugin/Resources/config/routes.yaml"
  • Update your schema:

    # Generate and edit migration
    bin/console doctrine:migrations:diff
    
    # Then apply migration
    bin/console doctrine:migrations:migrate

Contribution

Installation

To automatically execute installation steps, load fixtures and run server with just one command, run:

# Optional step, if 5 mins enough for webserver to try
# @see https://getcomposer.org/doc/06-config.md#process-timeout
composer config --global process-timeout 0

composer try

Running plugin tests

  • PHPSpec

    $ composer phpspec
  • Behat

    $ composer behat
  • All tests (phpspec & behat)

    $ composer test

Pushing changes & making PRs

Please run composer all to run all checks and tests before making PR or pushing changes to repo.