Funstaff/FunstaffTikaBundle — Issue #1: Check file existence in the DI Extension
Author: rande
Created: 2011-11-11 11:17:54+00:00
State: open

The ``Tika`` class should not do any check, this can be done in the DI Extension (avoid unless check on each request).

``` php
public function __construct(Array $configuration, $documentClass, $metadataClass)
{
if (!file_exists($configuration['tika_path'])) {
throw new \InvalidArgumentException(
sprintf('The tika app with path "%s" does not exists', $configuration['tika_path'])
);
}
```