Skip to content

Commit

Permalink
Merge pull request #1753 from craiglondon/gh-pages-typos
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge authored Feb 7, 2024
2 parents c41f935 + 72a3ffc commit 75f041c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/adapter/ftp.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ $filesystem = new League\Flysystem\Filesystem($adapter);

```php
// The internal adapter
$adapter = new League\Flysystem\FTP\FtpAdapter(
$adapter = new League\Flysystem\Ftp\FtpAdapter(
// Connection options
League\Flysystem\FTP\FtpConnectionOptions::fromArray([
League\Flysystem\Ftp\FtpConnectionOptions::fromArray([
'host' => 'hostname', // required
'root' => '/root/path/', // required
'username' => 'username', // required
'password' => 'password', // required
]),
new League\Flysystem\FTP\FtpConnectionProvider(),
new League\Flysystem\FTP\NoopCommandConnectivityChecker(),
new League\Flysystem\Ftp\FtpConnectionProvider(),
new League\Flysystem\Ftp\NoopCommandConnectivityChecker(),
new League\Flysystem\UnixVisibility\PortableVisibilityConverter()
);

Expand All @@ -67,25 +67,25 @@ $filesystem = new League\Flysystem\Filesystem($adapter);

### Connection provider

The `League\Flysystem\FTP\ConnectionProvider` allows you to change how a connection
The `League\Flysystem\Ftp\ConnectionProvider` allows you to change how a connection
is setup. If you have particular needs, or if your FTP server is exotic, this allows
you to modify this process.

### Connectivity Checker

The `League\Flysystem\FTP\ConnectivityChecker` allows you to change how
The `League\Flysystem\Ftp\ConnectivityChecker` allows you to change how
a connection is determined to be _connected_. This is something that can vary between
FTP flavours, so being able to change it, based in your needs, can be crucial.

By default the `League\Flysystem\FTP\NoopCommandConnectivityChecker` and
`League\Flysystem\FTP\RawListFtpConnectivityChecker` are shipped, which
By default the `League\Flysystem\Ftp\NoopCommandConnectivityChecker` and
`League\Flysystem\Ftp\RawListFtpConnectivityChecker` are shipped, which
are the most common forms for these checks.

### Connection Failures

All connection failures result in exceptions. The exceptions thrown have a name that
corresponds with what happened. Every connection exception is marked with the
`League\Flysystem\FTP\FtpConnectionException` interface, which is an extension of the
`League\Flysystem\Ftp\FtpConnectionException` interface, which is an extension of the
`League\Flysystem\FilesystemException` interface.

### Visibility Converter
Expand Down

0 comments on commit 75f041c

Please sign in to comment.