protected function createFileLocator($directory)
    {
        if (!is_dir($directory) || !is_readable($directory)) {
            throw new \InvalidArgumentException(sprintf('Could not create procedure loader as directory does not exist or is not readable: "%s"', $directory));
        }

        return new FileLocator($directory);
    }
protected function createFileLocator($directory)
    {
        if (!is_dir($directory) || !is_readable($directory)) {
            throw new \InvalidArgumentException(sprintf('Could not create procedure loader as directory does not exist or is not readable: "%s"', $directory));
        }

        return new FileLocator($directory);
    }
protected function createFileLocator ( $ directory ) { if ( ! is_dir ( $ directory ) || ! is_readable ( $ directory ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Could not create procedure loader as directory does not exist or is not readable: "%s"' , $ directory ) ) ; } return new FileLocator ( $ directory ) ; }
Create file locator instance.

@access protected
@param  string                                $directory
@return \Symfony\Component\Config\FileLocator
@throws \InvalidArgumentException
Create file locator instance .