src/DependencyInjection/SonataMediaExtension.php
public function configureClassesToCompile()
    {
        if (\PHP_VERSION_ID >= 70000) {
            return;
        }

        $this->addClassesToCompile([
            CDNInterface::class,
            CloudFront::class,
            Fallback::class,
            PantherPortal::class,
            Server::class,
            Pixlr::class,
            Local::class,
            Replicate::class,
            DefaultGenerator::class,
            GeneratorInterface::class,
            ODMGenerator::class,
            PHPCRGenerator::class,
            AmazonMetadataBuilder::class,
            MetadataBuilderInterface::class,
            NoopMetadataBuilder::class,
            ProxyMetadataBuilder::class,
            Gallery::class,
            GalleryHasMedia::class,
            GalleryHasMediaInterface::class,
            GalleryInterface::class,
            GalleryManager::class,
            GalleryManagerInterface::class,
            Media::class,
            MediaInterface::class,
            MediaManagerInterface::class,
            BaseProvider::class,
            BaseVideoProvider::class,
            DailyMotionProvider::class,
            FileProvider::class,
            ImageProvider::class,
            MediaProviderInterface::class,
            Pool::class,
            VimeoProvider::class,
            YouTubeProvider::class,
            ResizerInterface::class,
            SimpleResizer::class,
            SquareResizer::class,
            DownloadStrategyInterface::class,
            ForbiddenDownloadStrategy::class,
            PublicDownloadStrategy::class,
            RolesDownloadStrategy::class,
            SessionDownloadStrategy::class,
            ConsumerThumbnail::class,
            FormatThumbnail::class,
            ThumbnailInterface::class,
            MediaExtension::class,
        ]);
    }
public function configureClassesToCompile()
    {
        if (\PHP_VERSION_ID >= 70000) {
            return;
        }

        $this->addClassesToCompile([
            CDNInterface::class,
            CloudFront::class,
            Fallback::class,
            PantherPortal::class,
            Server::class,
            Pixlr::class,
            Local::class,
            Replicate::class,
            DefaultGenerator::class,
            GeneratorInterface::class,
            ODMGenerator::class,
            PHPCRGenerator::class,
            AmazonMetadataBuilder::class,
            MetadataBuilderInterface::class,
            NoopMetadataBuilder::class,
            ProxyMetadataBuilder::class,
            Gallery::class,
            GalleryHasMedia::class,
            GalleryHasMediaInterface::class,
            GalleryInterface::class,
            GalleryManager::class,
            GalleryManagerInterface::class,
            Media::class,
            MediaInterface::class,
            MediaManagerInterface::class,
            BaseProvider::class,
            BaseVideoProvider::class,
            DailyMotionProvider::class,
            FileProvider::class,
            ImageProvider::class,
            MediaProviderInterface::class,
            Pool::class,
            VimeoProvider::class,
            YouTubeProvider::class,
            ResizerInterface::class,
            SimpleResizer::class,
            SquareResizer::class,
            DownloadStrategyInterface::class,
            ForbiddenDownloadStrategy::class,
            PublicDownloadStrategy::class,
            RolesDownloadStrategy::class,
            SessionDownloadStrategy::class,
            ConsumerThumbnail::class,
            FormatThumbnail::class,
            ThumbnailInterface::class,
            MediaExtension::class,
        ]);
    }
public function configureClassesToCompile ( ) { if ( \ PHP_VERSION_ID >= 70000 ) { return ; } $ this -> addClassesToCompile ( [ CDNInterface :: class , CloudFront :: class , Fallback :: class , PantherPortal :: class , Server :: class , Pixlr :: class , Local :: class , Replicate :: class , DefaultGenerator :: class , GeneratorInterface :: class , ODMGenerator :: class , PHPCRGenerator :: class , AmazonMetadataBuilder :: class , MetadataBuilderInterface :: class , NoopMetadataBuilder :: class , ProxyMetadataBuilder :: class , Gallery :: class , GalleryHasMedia :: class , GalleryHasMediaInterface :: class , GalleryInterface :: class , GalleryManager :: class , GalleryManagerInterface :: class , Media :: class , MediaInterface :: class , MediaManagerInterface :: class , BaseProvider :: class , BaseVideoProvider :: class , DailyMotionProvider :: class , FileProvider :: class , ImageProvider :: class , MediaProviderInterface :: class , Pool :: class , VimeoProvider :: class , YouTubeProvider :: class , ResizerInterface :: class , SimpleResizer :: class , SquareResizer :: class , DownloadStrategyInterface :: class , ForbiddenDownloadStrategy :: class , PublicDownloadStrategy :: class , RolesDownloadStrategy :: class , SessionDownloadStrategy :: class , ConsumerThumbnail :: class , FormatThumbnail :: class , ThumbnailInterface :: class , MediaExtension :: class , ] ) ; }
Add class to compile.
Add class to compile .