Skip to content

Commit

Permalink
update demos/first
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Sep 27, 2009
1 parent 6fa4aca commit c5beee2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions demos/first/kumo-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
* @license Licensed under the Apache License 2.0, see COPYING for details
*/

set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR . get_include_path());

set_include_path(dirname(__FILE__) . '/../../lib' . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
Expand Down Expand Up @@ -83,14 +82,10 @@
'domain' => parse_url($url, PHP_URL_HOST)
)));

/**
$spizer->addHandler(new Kumo_Handler_RequestMessageQueueSenderSample(array(
'options' => array('name' => 'test')
)));
**/

$spizer->addHandler(new Kumo_Handler_ScrapeAndRequestSender(array(
'options' => array('name' => 'image'),
'queueAdapter' => 'Array',
'queueOptions' => array(
'name' => 'test'),
'expression' => '//img',
'type' => '@src',
)));
Expand Down
2 changes: 1 addition & 1 deletion demos/first/kumo-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @license Licensed under the Apache License 2.0, see COPYING for details
*/

set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR . get_include_path());
set_include_path(dirname(__FILE__) . '/../../lib' . PATH_SEPARATOR . get_include_path());

require_once 'Zend/Loader/Autoloader.php';
$loader = Zend_Loader_Autoloader::getInstance();
Expand Down

0 comments on commit c5beee2

Please sign in to comment.