PHP code example of shapecode / repository-as-a-service
1. Go to this page and download the library: Download shapecode/repository-as-a-service 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/ */
shapecode / repository-as-a-service example snippets
// application/ApplicationKernel.php
public function registerBundles()
{
// ...
$bundle = array(
// ...
new Shapecode\Bundle\RasSBundle\ShapecodeRasSBundle(),
);
// ...
return $bundles;
}
$this->getContainer()->get('lowercaseentitnyname_repository');
$this->getRepository('ShapecodeRasSBundle:TestEntity');