Skip to content

Commit

Permalink
Move to PSR-2 for the coding standard add 2 options
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Apr 22, 2015
1 parent 142f273 commit 48216d0
Show file tree
Hide file tree
Showing 3 changed files with 484 additions and 447 deletions.
17 changes: 9 additions & 8 deletions examples/local-sftp.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

// Don't forget to require the SFTP adapter: composer require league/flysystem-sftp
// Documentation for this adapter: http://flysystem.thephpleague.com/adapter/sftp/

Expand All @@ -14,20 +15,20 @@

// Your remote filesystem
$sftp = new SftpAdapter([
'host' => 'example.com',
'port' => 22,
'username' => 'username',
'privateKey' => 'path/to/or/contents/of/privatekey',
'root' => '/path/to/root',
'timeout' => 10,
'host' => 'example.com',
'port' => 22,
'username' => 'username',
'privateKey' => 'path/to/or/contents/of/privatekey',
'root' => '/path/to/root',
'timeout' => 10,
]);

// Wire your adapters to the command
$moverCommand = new MoverCommand;
$moverCommand = new MoverCommand();
$moverCommand->setLocalAdapter($local);
$moverCommand->setRemoteAdapter($sftp);

// Register the command and run the application
$application = new Application();
$application->add($moverCommand);
$application->run();
$application->run();
Loading

0 comments on commit 48216d0

Please sign in to comment.