From d559bd9b497245db1d01404cb155244d2869a4fc Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 16 May 2015 14:26:35 +0100 Subject: [PATCH] Don't rely on the File alias --- src/Thujohn/Analytics/AnalyticsServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Thujohn/Analytics/AnalyticsServiceProvider.php b/src/Thujohn/Analytics/AnalyticsServiceProvider.php index d9a445a..66b1572 100644 --- a/src/Thujohn/Analytics/AnalyticsServiceProvider.php +++ b/src/Thujohn/Analytics/AnalyticsServiceProvider.php @@ -29,7 +29,7 @@ public function boot() public function register() { $this->app->bind('Thujohn\Analytics\Analytics', function ($app) { - if(!\File::exists($app['config']->get('analytics::certificate_path'))) + if(!$app['files']->exists($app['config']->get('analytics::certificate_path'))) { throw new \Exception("Can't find the .p12 certificate in: " . $app['config']->get('analytics::certificate_path')); } @@ -67,4 +67,4 @@ public function provides() return array('analytics'); } -} \ No newline at end of file +}