classes/Input/EncodingProviders/Zencoder.php
protected function addCommonProps($outputs)
    {
        // Decoy settings
        $common = [

            // Destination location as a directory
            'base_url' => $this->destination(),

            // Register for notifications for when the conding is done. If testing
            // from CLI, just set the app.url config to a ngork domain.
            'notifications' => [route('decoy::encode@notify')],

        ];

        // Apply common settings ontop of the passed config
        foreach ($outputs as $label => &$config) {
            $common['label'] = $label;

            // Make the filename from the label
            $common['filename'] = $label.'.'.$config['format'];

            // Do the merge
            $config = array_merge($common, $config);
        }

        // Strip the keys from the array at this point, Zencoder doesn't like them
        return array_values($outputs);
    }
protected function addCommonProps($outputs)
    {
        // Decoy settings
        $common = [

            // Destination location as a directory
            'base_url' => $this->destination(),

            // Register for notifications for when the conding is done. If testing
            // from CLI, just set the app.url config to a ngork domain.
            'notifications' => [route('decoy::encode@notify')],

        ];

        // Apply common settings ontop of the passed config
        foreach ($outputs as $label => &$config) {
            $common['label'] = $label;

            // Make the filename from the label
            $common['filename'] = $label.'.'.$config['format'];

            // Do the merge
            $config = array_merge($common, $config);
        }

        // Strip the keys from the array at this point, Zencoder doesn't like them
        return array_values($outputs);
    }
protected function addCommonProps ( $ outputs ) { // Decoy settings $ common = [ // Destination location as a directory 'base_url' => $ this -> destination ( ) , // Register for notifications for when the conding is done. If testing // from CLI, just set the app.url config to a ngork domain. 'notifications' => [ route ( 'decoy::encode@notify' ) ] , ] ; // Apply common settings ontop of the passed config foreach ( $ outputs as $ label => & $ config ) { $ common [ 'label' ] = $ label ; // Make the filename from the label $ common [ 'filename' ] = $ label . '.' . $ config [ 'format' ] ; // Do the merge $ config = array_merge ( $ common , $ config ) ; } // Strip the keys from the array at this point, Zencoder doesn't like them return array_values ( $ outputs ) ; }
Update the config with properties that are common to all outputs

@param  array $config
@return array
Update the config with properties that are common to all outputs