Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Nov 15, 2024
2 parents fb911fa + b469d11 commit 346d698
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/reference/data_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Here's one way to do it:
use Sonata\AdminBundle\Exporter\DataSourceInterface;
use Sonata\DoctrineORMAdminBundle\Exporter\DataSource;
use Sonata\Exporter\Source\DoctrineORMQuerySourceIterator;
use Sonata\Exporter\Source\SourceIteratorInterface;

class DecoratingDataSource implements DataSourceInterface
{
Expand All @@ -28,7 +27,7 @@ Here's one way to do it:
$this->dataSource = $dataSource;
}

public function createIterator(ProxyQueryInterface $query, array $fields): SourceIteratorInterface
public function createIterator(ProxyQueryInterface $query, array $fields): \Iterator
{
/** @var DoctrineORMQuerySourceIterator $iterator */
$iterator = $this->dataSource->createIterator($query, $fields);
Expand All @@ -47,4 +46,3 @@ Here's one way to do it:
...
App\Service\Admin\DecoratingDataSource:
decorates: 'sonata.admin.data_source.orm'
arguments: ['@App\Services\Admin\DecoratingDataSource.inner']

0 comments on commit 346d698

Please sign in to comment.