PHP Class PartKeepr\MimetypeIconsBundle\Services\MimetypeIconService

Inheritance: extends Symfony\Component\DependencyInjection\ContainerAware
Show file Open project: partkeepr/PartKeepr

Protected Properties

Property Type Description
$container Symfony\Component\DependencyInjection\Container

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\Container $container )
getMimetypeIcon ( string $mimetype ) : string Returns the file path to an image file which represents the passed mimetype.

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container

getMimetypeIcon() public method

Returns the file path to an image file which represents the passed mimetype.
public getMimetypeIcon ( string $mimetype ) : string
$mimetype string The mimetype
return string A path to the mimetype icon

Property Details

$container protected property

protected Container,Symfony\Component\DependencyInjection $container
return Symfony\Component\DependencyInjection\Container