Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.79 KB

how-to-start.md

File metadata and controls

57 lines (41 loc) · 1.79 KB

Return to table of contents

III. How to start

3.1 Installation

3.1.1 Require package

Integration Messaging does not base on any other framework, and thanks to that can be connected to any.
Currently available implementation is for ready to use for Symfony.

"require": {  
    "simplycodedsoftware/integration-messaging-symfony": "^0.4.0"  
}

It's highly recommended to use integration messaging with Symfony configured with automatic autowire.
This really simplifiy working with Integration Messaging.

3.1.2 Turn it on

If you're using symfony 3, activate bundle in your Kernel class.
Symfony 4 activate bundle in config/bundles.php

    [
        ICTWorks\Matching\Infrastructure\Framework\MatchingBundle::class => ['all' => true]
    ]

3.1.3 Annotations

Huge part of the high level framework's code is based on Annotations to simplify client's API.
If you having problem loading the annotations or have not registered AnnotationRegistry, you need to do it in order to work with the framework.

You should add it to your console.php and app.php

$loader = require __DIR__.'/../vendor/autoload.php';
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

3.1.4 Quick Start

If you want to play around with the concept you may try skeleton project with Symfony 4 and Integration Messaging configured.
Just clone skeleton-integration-messaging and follow README instructions