Skip to content

Commit

Permalink
Support Laravel ^6.0|^7.0 (#76)
Browse files Browse the repository at this point in the history
* Support Laravel ^5.0|^6.0|^7.0

* Update array_get() to Arr::get()
  • Loading branch information
tomas-novotny authored Oct 24, 2020
1 parent 0504d95 commit 292dc88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "anchu/ftp",
"description": "A simple Laravel 4/5 ftp service provider",
"keywords": ["ftp", "laravel", "l4", "l5", "service provider"],
"description": "A simple Laravel 7 ftp service provider",
"keywords": ["ftp", "laravel", "l5", "l6","l7", "service provider"],
"license": "MIT",
"authors": [{
"name": "Harish Anchu",
"email": "[email protected]"
}],
"require": {
"php": ">=5.4.0",
"illuminate/support": "5.x"
"illuminate/support": "^5.0|^6.0|^7.0"
},
"autoload": {
"psr-0": {
Expand All @@ -24,4 +24,4 @@
}
},
"minimum-stability": "dev"
}
}
4 changes: 3 additions & 1 deletion src/Anchu/Ftp/FtpManager.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php namespace Anchu\Ftp;

use Illuminate\Support\Arr;

class FtpManager {

/**
Expand Down Expand Up @@ -54,7 +56,7 @@ protected function getConfig($name)
// If the configuration doesn't exist, we'll throw an exception and bail.
$connections = $this->app['config']['ftp.connections'];

if (is_null($config = array_get($connections, $name)))
if (is_null($config = Arr::get($connections, $name)))
{
throw new \InvalidArgumentException("Ftp [$name] not configured.");
}
Expand Down

0 comments on commit 292dc88

Please sign in to comment.