This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Sonata\MediaBundle\Listener; | |
use Application\Sonata\MediaBundle\Entity\Media; | |
use Doctrine\ORM\Event\LifecycleEventArgs; | |
use Sonata\MediaBundle\Provider\MediaProviderInterface; | |
use Sonata\MediaBundle\Provider\Pool; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array( | |
//Author Parameters - Show posts associated with certain author. | |
'author' => '1,2,3,' | |
'author_name' => 'luetkemj', | |
'author__in' => array( 2, 6 ), | |
'author__not_in' => array( 2, 6 ), | |
//Category Parameters - Show posts associated with certain categories. | |
'cat' => 5, |