diff --git a/README.md b/README.md index 4f57cc7..f473855 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ Tactix can be integrated into Laravel projects with a custom service provider. namespace App\Providers; use Illuminate\Support\ServiceProvider; -use Symfony\Component\Yaml\Yaml; +use Tactix\Blacklist; use Tactix\BlacklistFactory; class BlacklistProvider extends ServiceProvider @@ -194,7 +194,7 @@ class BlacklistProvider extends ServiceProvider $configPath = config_path('tactix.yaml'); return file_exists($configPath) - ? BlacklistFactory::fromYaml($configPath) + ? BlacklistFactory::fromYamlFile($configPath) : BlacklistFactory::DEFAULT(); }); }