Created
April 14, 2012 14:19
-
-
Save fordnox/2384701 to your computer and use it in GitHub Desktop.
Uploader message executor file
This file contains hidden or 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
<?php | |
/* | |
* This file is part of Queue Manager. | |
* | |
* (c) 2011 SparkleBit <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace QueueExample; | |
use Queue\Message; | |
/** | |
* An example message with error | |
* | |
* Acts as an example message. It can be safely removed or replaced. | |
* | |
* @author SparkleBit <[email protected]> | |
*/ | |
class Uploader extends Message | |
{ | |
/** | |
* This Message purpose is to throw an Exception | |
* | |
* @return bool | |
*/ | |
public function execute() | |
{ | |
$file = $this->file_path; // file path which needs to uploaded | |
//upload to service logic goes here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add message to the queue: