PHP code example of kolinalabs / customer-bundle

1. Go to this page and download the library: Download kolinalabs/customer-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kolinalabs / customer-bundle example snippets

sh

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

// 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
}
sh
/**
 * @return \Kolina\CustomerBundle\Entity\CustomerManager
 */
private function getCustomerManager()
{
    return $this->get('kolina_customer.manager');
}