Skip to content

Commit ec68e37

Browse files
committed
replace autoloader
1 parent 232bfb6 commit ec68e37

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

demos/bucket_mgr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once __DIR__.'/../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;

demos/download_token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55

demos/fetch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;
@@ -15,11 +15,11 @@
1515
$key = time() . '.ico';
1616

1717
list($ret, $err) = $bmgr->fetch($url, $bucket, $key);
18-
echo "fetch $url to bucket: $bucket key: $key\n";
18+
echo "=====> fetch $url to bucket: $bucket key: $key\n";
1919
if ($err !== null)
2020
{
2121
var_dump($err);
2222
} else {
23-
var_dump($ret);
23+
echo 'Success';
2424
}
2525

demos/list_file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55
use Qiniu\Storage\BucketManager;

demos/mkzip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55
use Qiniu\Processing\PersistentFop;

demos/pfop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55
use Qiniu\Processing\PersistentFop;

demos/up.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
2-
// require_once '../vendor/autoload.php';
3-
require_once '../src/autoload.php';
2+
require_once '../autoload.php';
43

54
use Qiniu\Auth;
65
use Qiniu\Storage\UploadManager;
@@ -26,8 +25,8 @@
2625

2726
//----------------------------------------upload demo2 ----------------------------------------
2827
// 上传文件到七牛
29-
$filePath = __file__;
30-
$key = 'up.php';
28+
$filePath = './php-logo.png';
29+
$key = 'php-logo.png';
3130
list($ret, $err) = $uploadMgr->putFile($token, $key, $filePath);
3231
echo "\n====> putFile result: \n";
3332
if ($err !== null) {

demos/upload_token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once '../vendor/autoload.php';
2+
require_once '../autoload.php';
33

44
use Qiniu\Auth;
55

0 commit comments

Comments
 (0)