-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the ExpressRunner.php file and fixes some missing data cleanup.
- Loading branch information
1 parent
a7f98a0
commit 24233cb
Showing
2 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace S3; | ||
|
||
use Aws\Exception\AwsException; | ||
use AwsUtilities\RunnableExample; | ||
|
||
require_once __DIR__ . "/vendor/autoload.php"; | ||
|
||
require "S3ExpressBasics.php"; | ||
|
||
try { | ||
/** | ||
* @var RunnableExample $runner | ||
*/ | ||
$runner = new S3ExpressBasics(); | ||
$runner->helloService(); | ||
$runner->runExample(); | ||
} catch (AwsException $error) { | ||
echo "Errored with the following: (" . $error->getCode() . ") - " . $error->getMessage(); | ||
} finally { | ||
echo "Cleaning up.\n"; | ||
$runner->cleanUp(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters