Skip to content

Reactors and Projectors not Auto Discovered #345

Answered by aidan-casey
anabeto93 asked this question in Q&A
Discussion options

You must be logged in to vote

@anabeto93 - In the closed issue that you reference, @brendt requested that you submit a PR with a failing test so that this issue may be addressed. I recommend doing so as opposed to continuing to create issues.

Note that the auto_discover_base_path value defines the path that will be stripped from the class name to determine the FQDN. In this scenario, your configuration should be as follows:

<?php

return [

    /*
     * These directories will be scanned for projectors and reactors. They
     * will be registered to Projectionist automatically.
     */
    'auto_discover_projectors_and_reactors' => [
        base_path('app/Domain')
    ],

    /*
     * This directory will be used as …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anabeto93
Comment options

Answer selected by anabeto93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #338 on May 27, 2022 14:31.