承接 saurabhaec/zf2-php-resque 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

saurabhaec/zf2-php-resque

Composer 安装命令:

composer require saurabhaec/zf2-php-resque

包简介

PHP Resque Worker in zf2

关键字:

README 文档

README

#ZF2 PHP Resque Worker in zf2

Dependency

  1. redis server
Instalation
  1. move file resquezf2.global.php.dist from config folder to globle config folder and rename file to resquezf2.global.php
  2. add Resquezf2 in application.config.php file at moduel section to load this moudle.
  3. load Resque Library; add this line to your module.php
    require_once APPLICATION_PATH."/module/Resquezf2/src/Resquezf2/vendor/autoload.php";
  4. if you are useing BjyAuthorize moduel then add this line to your moduel.php to desable its for commond line rout
    <pre>
    $request = $e->getTarget()->getServiceManager()->get('Request'); 
        if ($request instanceof ConsoleRequest) {
            //throw new RuntimeException('You can only use this action from a console!');
            // console desable BjyAuthorize
        }else{
    
            //bjyauthorise navigation
            $authorize = $e->getTarget()->getServiceManager()->get('BjyAuthorizeServiceAuthorize');
            $acl = $authorize->getAcl();
            $role = $authorize->getIdentity();  
    
            // var_dump($acl , $role); exit();
            $parentRoles = $authorize->getIdentityProvider()->getIdentityRoles(); 
            \Zend\View\Helper\Navigation::setDefaultAcl($acl);
            \Zend\View\Helper\Navigation::setDefaultRole($role); 
    
        }
      </pre>
      
      
      otherwise skip this .
    
  5. run worker in commond line
    php public/index.php run-worker
  6. #Add job in queue
    \Resque::setBackend('localhost:6379'); 
    

    $args = array( ); \Resque::enqueue('zf2-php-resque', 'Resquezf2\Model\Job', $args );

  7. you can also create your own class in model location.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固