src/ReadModel/Index/Projector.php
protected function applyPlaceCreated(
        PlaceCreated $placeCreated,
        DomainMessage $domainMessage
    ) {
        $placeId = $placeCreated->getPlaceId();

        $address = $placeCreated->getAddress();

        $this->addNewItemToIndex(
            $domainMessage,
            $placeId,
            EntityType::PLACE(),
            $placeCreated->getTitle(),
            $address->getPostalCode(),
            $address->getLocality(),
            $address->getCountry()->getCode()
        );
    }
protected function applyPlaceCreated(
        PlaceCreated $placeCreated,
        DomainMessage $domainMessage
    ) {
        $placeId = $placeCreated->getPlaceId();

        $address = $placeCreated->getAddress();

        $this->addNewItemToIndex(
            $domainMessage,
            $placeId,
            EntityType::PLACE(),
            $placeCreated->getTitle(),
            $address->getPostalCode(),
            $address->getLocality(),
            $address->getCountry()->getCode()
        );
    }
protected function applyPlaceCreated ( PlaceCreated $ placeCreated , DomainMessage $ domainMessage ) { $ placeId = $ placeCreated -> getPlaceId ( ) ; $ address = $ placeCreated -> getAddress ( ) ; $ this -> addNewItemToIndex ( $ domainMessage , $ placeId , EntityType :: PLACE ( ) , $ placeCreated -> getTitle ( ) , $ address -> getPostalCode ( ) , $ address -> getLocality ( ) , $ address -> getCountry ( ) -> getCode ( ) ) ; }
Listener for place created commands.
@param PlaceCreated $placeCreated
@param DomainMessage $domainMessage
Listener for place created commands .