PHP Class BrowscapPHP\Command\LogfileCommand

Author: Dave Olsen, http://dmolsen.com
Author: Thomas Müller ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command
Exibir arquivo Open project: browscap/browscap-php Class Usage Examples

Public Methods

Method Description
__construct ( string $defaultCacheFolder )
setCache ( BrowscapPHP\Cache\BrowscapCacheInterface $cache )

Protected Methods

Method Description
configure ( ) Configures the current command.
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void

Private Methods

Method Description
createAmountContent ( )
createAmountTypeContent ( )
getCache ( Symfony\Component\Console\Input\InputInterface $input ) : BrowscapPHP\Cache\BrowscapCacheInterface
getFiles ( Symfony\Component\Console\Input\InputInterface $input ) : Finder
getPath ( Symfony\Component\Finder\SplFileInfo $file ) : string
getResult ( stdClass $result ) : string
handleLine ( Symfony\Component\Console\Output\OutputInterface $output, ReaderCollection $collection, Browscap $browscap, integer $line )
outputProgress ( Symfony\Component\Console\Output\OutputInterface $output, string $result, boolean $end = false ) : integer

Method Details

__construct() public method

public __construct ( string $defaultCacheFolder )
$defaultCacheFolder string

configure() protected method

Configures the current command.
protected configure ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | null | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | null | void

setCache() public method

public setCache ( BrowscapPHP\Cache\BrowscapCacheInterface $cache )
$cache BrowscapPHP\Cache\BrowscapCacheInterface