Skip to content

Commit 1da0e3a

Browse files
committed
Rename namespace.
1 parent b1924ee commit 1da0e3a

12 files changed

+18
-18
lines changed

demo/auto_cache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once '_inc.php';
3-
use Ares333\Curlmulti\Curl;
4-
use Ares333\Curlmulti\Toolkit;
3+
use Ares333\Curl\Curl;
4+
use Ares333\Curl\Toolkit;
55
$curl = new Curl();
66
$toolkit = new Toolkit();
77
$curl->onInfo = array(

demo/basic.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require_once '_inc.php';
3-
use Ares333\Curlmulti\Curl;
3+
use Ares333\Curl\Curl;
44
$curl = new Curl();
55
$curl->add(
66
array(

demo/chained_task.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require_once '_inc.php';
3-
use Ares333\Curlmulti\Curl;
3+
use Ares333\Curl\Curl;
44
$curl = new Curl();
55
$url = 'http://baidu.com';
66
$curl->add(array(

demo/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"autoload" : {
77
"psr-4" : {
8-
"Ares333\\Curlmulti\\" : "../src"
8+
"Ares333\\Curl\\" : "../src"
99
}
1010
}
1111
}

demo/download.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
require '_inc.php';
3-
use Ares333\Curlmulti\Curl;
3+
use Ares333\Curl\Curl;
44
$curl = new Curl();
55
$url = 'http://www.baidu.com/img/bd_logo1.png';
66
$file = __DIR__ . '/output/download.png';

demo/http_clone.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
use Ares333\Curlmulti\HttpClone;
2+
use Ares333\Curl\HttpClone;
33
require_once '_inc.php';
44
$dir = __DIR__ . '/output/clone';
55
$cacheDir = __DIR__ . '/output/cache';

demo/running_info.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once '_inc.php';
3-
use Ares333\Curlmulti\Curl;
4-
use Ares333\Curlmulti\Toolkit;
3+
use Ares333\Curl\Curl;
4+
use Ares333\Curl\Toolkit;
55
$curl = new Curl();
66
$toolkit = new Toolkit();
77
$curl->onInfo = array(

demo/vendor/composer/autoload_psr4.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
$baseDir = dirname($vendorDir);
77

88
return array(
9-
'Ares333\\Curlmulti\\' => array($baseDir . '/../src'),
9+
'Ares333\\Curl\\' => array($baseDir . '/../src'),
1010
);

demo/vendor/composer/autoload_static.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class ComposerStaticInite6b9ef67b3e4b26cfc57513f2e75395d
99
public static $prefixLengthsPsr4 = array (
1010
'A' =>
1111
array (
12-
'Ares333\\Curlmulti\\' => 18,
12+
'Ares333\\Curl\\' => 13,
1313
),
1414
);
1515

1616
public static $prefixDirsPsr4 = array (
17-
'Ares333\\Curlmulti\\' =>
17+
'Ares333\\Curl\\' =>
1818
array (
1919
0 => __DIR__ . '/../..' . '/../src',
2020
),

src/Curl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Ares333\Curlmulti;
2+
namespace Ares333\Curl;
33

44
/**
55
* The best curlmulti library.

src/HttpClone.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Ares333\Curlmulti;
2+
namespace Ares333\Curl;
33

44
use phpQuery;
55

@@ -83,7 +83,7 @@ function add($url, $depth = null)
8383
*
8484
* {@inheritdoc}
8585
*
86-
* @see \Ares333\Curlmulti\Toolkit::formatUrl()
86+
* @see \Ares333\Curl\Toolkit::formatUrl()
8787
*/
8888
function urlFormater($url)
8989
{
@@ -612,7 +612,7 @@ protected function getQuery($url)
612612
*
613613
* {@inheritdoc}
614614
*
615-
* @see \Ares333\Curlmulti\Toolkit::isUrl()
615+
* @see \Ares333\Curl\Toolkit::isUrl()
616616
*/
617617
function isUrl($url)
618618
{

src/Toolkit.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Ares333\Curlmulti;
2+
namespace Ares333\Curl;
33

44
/**
55
* Toolkit for Curl
@@ -435,7 +435,7 @@ function url2dir($url)
435435

436436
/**
437437
*
438-
* @return \Ares333\Curlmulti\Curl
438+
* @return \Ares333\Curl\Curl
439439
*/
440440
function getCurl()
441441
{

0 commit comments

Comments
 (0)