Skip to content

Commit

Permalink
Fix usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Westin Shafer authored and Westin Shafer committed Sep 14, 2017
1 parent 9832308 commit 7f24fb2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -54,14 +54,11 @@ composer require wshafer/psr11-flysystem
```php
<?php

// Get the file system manager from the container
$flySystemManager = $container->get(\WShafer\PSR11FlySystem\FlySystemManager::class);

// Get the FlySystem FileSystem
$fileSystem = $flySystemManager->get('local');
$fileSystem = $container->get('myFileSystemService');

// Write to file
$fileSystem->put('test2.txt', 'this is also test 2');
$fileSystem->put('test.txt', 'this is test');
```

Additional info can be found in the [documentation](https://flysystem.thephpleague.com/)
Expand Down

0 comments on commit 7f24fb2

Please sign in to comment.