Skip to content

Setono/SyliusLogEntryPlugin

Repository files navigation

Sylius Log Entry Plugin

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.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors