定制 kolinalabs/customer-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kolinalabs/customer-bundle

Composer 安装命令:

composer require kolinalabs/customer-bundle

包简介

Symfony KolinaCustomerBundle

README 文档

README

Simplified management clients, extensible and integrated with FOSUserBundle

1. Installation and Configuration

Caution: This package is under development!

1.1 Download KolinaCustomerBundle using composer

$ composer require kolinalabs/customer-bundle

After downloading the package

1.2 Enable the bundle

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Kolina\CustomerBundle\KolinaCustomerBundle(),
        // ...
    );
}

1.3 Create your customer class Tested with xml mapping

<?php
// src/AppBundle/Entity/Customer.php
namespace AppBundle\Entity;

use Kolina\CustomerBundle\Entity\Customer as AbstractCustomer;

/**
 * Customer
 */
class Customer extends AbstractCustomer
{
    // Your custom properties and methods
}

1.4 Configure app/config.yml

# app/config.yml
kolina_customer:
    entity: AppBundle\Entity\Customer

2. CRUD

2.1 Access the service manager in the controller

/**
 * @return \Kolina\CustomerBundle\Entity\CustomerManager
 */
private function getCustomerManager()
{
    return $this->get('kolina_customer.manager');
}

2.2 Example usage

// Create Customer Object
...
$manager = $this->getCustomerManager();
$customer = $manager->create();

$customer
        ->setFirstname('Foo')
        ->setLastname('Bar')
        //... other setter methods - 
        //... see \Kolina\CustomerBundle\Entity\CustomerInterface
        ;

$manager->save($customer);
...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固