Skip to content

Commit

Permalink
Intercept out of band rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Oct 20, 2022
1 parent b889900 commit 1a02e9e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Classes/Aspect/OutOfBandRenderer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

/*
* This file is part of the Nezaniel.ComponentView package.
*/

declare(strict_types=1);

namespace Nezaniel\ComponentView\Aspect;

use Neos\Flow\Annotations as Flow;
use Neos\Flow\Aop\JoinPointInterface;

/**
* An aspect intercepting Neos' attempt to do anything fusiony in ReloadContentOutOfBand
*
* @see ReloadContentOutOfBand
*/
#[Flow\Aspect]
class OutOfBandRenderer
{
#[Flow\Around('method(protected Neos\Neos\Ui\Domain\Model\Feedback\Operations\ReloadContentOutOfBand->renderContent())')]
public function renderContent(JoinPointInterface $joinPoint): string
{
return '';
}
}

0 comments on commit 1a02e9e

Please sign in to comment.