MimeMap

UpdateCommand extends Command
in package

A Symfony application command to update the MIME type to extension map.

Table of Contents

Methods

compareMaps()  : bool
Compares two type-to-extension maps by section.
configure()  : void
{@inheritdoc}
execute()  : int
{@inheritdoc}

Methods

compareMaps()

Compares two type-to-extension maps by section.

protected compareMaps(MimeMapInterface $old_map, MimeMapInterface $new_map, string $section) : bool
Parameters
$old_map : MimeMapInterface

The first map to compare.

$new_map : MimeMapInterface

The second map to compare.

$section : string

The first-level array key to compare: 't' or 'e' or 'a'.

Tags
throws
RuntimeException

with diff details if the maps differ.

Return values
bool

True if the maps are equal.

execute()

{@inheritdoc}

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

        
On this page

Search results