public function setContainer(ContainerInterface $container = null)
    {
        parent::setContainer($container);

        if ($this->getApplication()) {
            $mediaClasses = $this->getApplication()->getAutoloader()->glob('Media'.DIRECTORY_SEPARATOR.'*');
            foreach ($mediaClasses as $mediaClass) {
                class_exists($mediaClass);
            }
        }
    }
public function setContainer(ContainerInterface $container = null)
    {
        parent::setContainer($container);

        if ($this->getApplication()) {
            $mediaClasses = $this->getApplication()->getAutoloader()->glob('Media'.DIRECTORY_SEPARATOR.'*');
            foreach ($mediaClasses as $mediaClass) {
                class_exists($mediaClass);
            }
        }
    }
public function setContainer ( ContainerInterface $ container = null ) { parent :: setContainer ( $ container ) ; if ( $ this -> getApplication ( ) ) { $ mediaClasses = $ this -> getApplication ( ) -> getAutoloader ( ) -> glob ( 'Media' . DIRECTORY_SEPARATOR . '*' ) ; foreach ( $ mediaClasses as $ mediaClass ) { class_exists ( $ mediaClass ) ; } } }
Creates an instance of MediaController.

@param ContainerInterface|null $container
@internal param ContainerInterface $app
Creates an instance of MediaController .