Example #1
0
<?php

return Affinity\Config::create([], ['bar' => 'foo', 'foo' => 'too']);
Example #2
0
<?php

return Affinity\Config::create(['driver' => $app->getEnvironment('DB_TYPE', NULL), 'host' => $app->getEnvironment('DB_HOST', 'localhost'), 'path' => $app->getEnvironment('DB_PATH', NULL), 'dbname' => $app->getEnvironment('DB_NAME', NULL), 'user' => $app->getEnvironment('DB_USER', NULL), 'password' => $app->getEnvironment('DB_PASS', NULL)]);
Example #3
0
<?php

return Affinity\Config::create(['quill', 'providers', 'middleware'], ['@quill' => ['commands' => ['Inkwell\\Doctrine\\Command\\OrmGenerateClassesCommand']], '@providers' => ['mapping' => ['Doctrine\\Common\\Persistence\\ObjectManager' => 'Doctrine\\ORM\\EntityManager']], '@middleware' => ['providers' => ['Inkwell\\Doctrine\\Middleware\\Flush']]]);
Example #4
0
<?php

return Affinity\Config::create(['test'], ['foo' => 'bar', '@test' => ['foo' => 'bar']]);
Example #5
0
<?php

return Affinity\Config::create(['config_type' => 'yaml', 'root_class' => NULL, 'base_namespace' => 'Base', 'entity_root' => 'user/entities', 'config_root' => 'config/default/doctrine/entities', 'repository_root' => 'user/repositories']);