OpenSourceSoftware ( Users (/users?ref=top_menu_link)


Top Projects (/open-source/?ref=top_menu_link)


About (/about)

Join (/register)


Join 10350+ others. No

Coderockr (/user2/Coderockr) / 24 SOA (/p/Coderockr/SOA) (/p/Coderockr/SOA/stargazers) (

spamming. I promise! Follow us at github.



Silex Controller Provider to provide SOA access to Doctrine entities and services


Follow @pythonhackers

0 (/p/Coderockr/SOA/contributors)


ref=left_menu_link) Star

0 (/p/Coderockr/SOA/watchers)



Contributors (/p/Coderockr/SOA/contributors)

How to use Watchers



Stargazers (/p/Coderockr/SOA/stargazers)

Doctrine\ORM\Configuration, Doctrine\Common\Cache\ArrayCache as Cache, Doctrine\Common\Annotations\AnnotationRegistry, Doctrine\Common\Annotations\AnnotationReader, Doctrine\Common\ClassLoader;

Related Projects

$loader = require __DIR__.'/vendor/autoload.php'; $loader->add('Skel', __DIR__.'/src');

//doctrine $config = new Configuration(); //$cache = new Cache(); $cache = new \Doctrine\Common\Cache\ApcCache(); $config->setQueryCacheImpl($cache); $config->setProxyDir('/tmp'); $config->setProxyNamespace('EntityProxy'); $config->setAutoGenerateProxyClasses(true); //mapping (example uses annotations, could be any of XML/YAML or plain PHP) AnnotationRegistry::registerFile(__DIR__. DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'doctrine' . DIRECTORY_SE PARATOR . 'orm' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEP ARATOR . 'Doctrine' . DIRECTORY_SEPARATOR . 'ORM' . DIRECTORY _SEPARATOR . 'Mapping' . DIRECTORY_SEPARATOR . 'Driver' . DIR ECTORY_SEPARATOR . 'DoctrineAnnotations.php');

\Doctrine\Common\Annotations\AnnotationRegistry::registerFile ( __DIR__ . '/vendor/jms/serializer/src/JMS/Serializer/Anno tation/Type.php' );

$driver = new Doctrine\ORM\Mapping\Driver\AnnotationDriver( new Doctrine\Common\Annotations\AnnotationReader(), array(__DIR__.'/src/Skel/Model') ); $config->setMetadataDriverImpl($driver); $config->setMetadataCacheImpl($cache);

use Silex\Application, Silex\Provider\DoctrineServiceProvider, Symfony\Component\HttpFoundation\Request, Dflydev\Silex\Provider\DoctrineOrm\DoctrineOrmServiceProvide r;

use Symfony\Component\HttpFoundation\Response; use Coderockr\SOA\RestControllerProvider;

$app = new Application();

//configuration $app->register(new Silex\Provider\SessionServiceProvider());

//getting the EntityManager $app->register(new DoctrineServiceProvider, array( 'db.options' => array( 'driver' => 'pdo_mysql', 'host' => 'localhost', 'port' => '3306', 'user' => 'skel', 'password' => 'skel', 'dbname' => 'skel' ) ));

$app->register(new DoctrineOrmServiceProvider(), array( 'orm.proxies_dir' => '/tmp/' . getenv('APPLICATION_ENV'), 'orm.em.options' => array( 'mappings' => array( array( 'type' => 'annotation', 'use_simple_annotation_reader' => false, 'namespace' => 'Skel\Model', 'path' => __DIR__ . '/src' ) ) ), 'orm.proxies_namespace' => 'EntityProxy', 'orm.auto_generate_proxies' => true ));

$api = new RestControllerProvider(); $api->setCache($cache); //Doctrine cache, created in bootstra p.php $api->setEntityNamespace('Skel\Model'); //you can set authorization and authentication classes //$api->setAuthenticationService(new \Skel\Service\Authentica tionService); //$api->setAuthorizationService(new \Skel\Service\Authorizati onService); $app->mount('/api', $api);

$rpc = new RpcControllerProvider(); $rpc->setCache($cache); //Doctrine cache, created in bootstra p.php $rpc->setServiceNamespace('Skel\Service'); //you can set authorization and authentication classes //$api->setAuthenticationService(new \Skel\Service\Authentica tionService); //$api->setAuthorizationService(new \Skel\Service\Authorizati onService); $app->mount('/rpc', $rpc);

How to use Rest How to use filter?,password :eq:teste

This will query for name LIKE %elton% and password = teste

How to use joins?

This will query all users with where roleColletion.key = admi n

Operators: Use this guide to check what you can put between field:{opera tor}:value er.html#the-expr-class

You can use `eq` `like` `lt` `lte` `gt` `gte` `neq` and more methods based on key:value

Combined with Fields, limit, offset,name&limit=10&offset=0

This set of parameters can be combined with both listed above (filters and joins)


Designed, built and made in Amsterdam with all the love by @bcambel ( running version @ ( Code licensed under MIT (


Follow @pythonhackers








OpenSourceSoftware ( Users (/users?ref=top_menu_link) (Python) Top Projects (/open-source/?ref=top_menu_link) Languages About (/...

62KB Sizes 4 Downloads 13 Views

Recommend Documents

soa -
Silex Controller Provider to provide SOA access to Doctrine entities and services.

Oracle SOA blog: Soa 11g Human Task client Authentication
Feb 18, 2010 - IWorkflowContext iWorkflowC = itTask.authenticate(null, null, null); // Here not created the context IBPM

Zuul | SOA Essentials
Firstly let's see what is load balancing;. It's mainly distributing work of a computer to two or more similar computers.

Soa exam c manual
Marcelo rudders fetal scans unanimously planning? untenanted Ephraim mingles his Captivator apostatar rustily guillotine

National Football League - SOA
NFL players have been covered by this pension plan since 1962. The plan considers age 55 to ... 12,016. Average approxim

(SOA) Environments - Semantic Community
Research, Technology and Systems Solutions (RTSS) Program. System of Systems Practice (SoSP) Initiative .... the full sy

SOA and Microservices :: PHP Roundtable
Sep 1, 2015 - If you read the gang of four book (Design Patterns: Elements of Reusable Object-Oriented Software), everyt

Asset-Liability Integration: "Introduction" - SOA
Life Insurance. 12th ed. Upper Saddle River, NJ: Prentice Hall/Simon & ... and Corporate Policy (reprint of 1988 edition

Guide to SOA Written Exams
Appropriate Assessment Methods. When the SOA's examination system was re-designed during 2005-2007 a key change was that

Soa service oriented architecture ppt
Hakim coarse grain and expandable soal dan pembahasan persamaan garis lurus smk prigged categorize your necrotizing geta