for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\MediaBundle\PHPCR;
use Sonata\Doctrine\Document\BasePHPCRManager;
/**
* @final since sonata-project/media-bundle 3.21.0
class MediaManager extends BasePHPCRManager
{
public function save($entity, $andFlush = true): void
// BC compatibility for $context parameter
if ($andFlush && \is_string($andFlush)) {
$entity->setContext($andFlush);
}
// BC compatibility for $providerName parameter
if (3 === \func_num_args()) {
$entity->setProviderName(func_get_arg(2));
if ($andFlush && \is_bool($andFlush)) {
parent::save($entity, $andFlush);
} else {
// BC compatibility with previous signature
parent::save($entity, true);
public function getPager(array $criteria, $page, $limit = 10, array $sort = []): void
$criteria
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$page
$limit
$sort
throw new \RuntimeException('Not Implemented yet');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.