Skip to content

Commit 292dc88

Browse files
Support Laravel ^6.0|^7.0 (#76)
* Support Laravel ^5.0|^6.0|^7.0 * Update array_get() to Arr::get()
1 parent 0504d95 commit 292dc88

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "anchu/ftp",
3-
"description": "A simple Laravel 4/5 ftp service provider",
4-
"keywords": ["ftp", "laravel", "l4", "l5", "service provider"],
3+
"description": "A simple Laravel 7 ftp service provider",
4+
"keywords": ["ftp", "laravel", "l5", "l6","l7", "service provider"],
55
"license": "MIT",
66
"authors": [{
77
"name": "Harish Anchu",
88
"email": "harishanchu@gmail.com"
99
}],
1010
"require": {
1111
"php": ">=5.4.0",
12-
"illuminate/support": "5.x"
12+
"illuminate/support": "^5.0|^6.0|^7.0"
1313
},
1414
"autoload": {
1515
"psr-0": {
@@ -24,4 +24,4 @@
2424
}
2525
},
2626
"minimum-stability": "dev"
27-
}
27+
}

src/Anchu/Ftp/FtpManager.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php namespace Anchu\Ftp;
22

3+
use Illuminate\Support\Arr;
4+
35
class FtpManager {
46

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

57-
if (is_null($config = array_get($connections, $name)))
59+
if (is_null($config = Arr::get($connections, $name)))
5860
{
5961
throw new \InvalidArgumentException("Ftp [$name] not configured.");
6062
}

0 commit comments

Comments
 (0)