ats / core-bundle
ATS Core Bundle
2.1.0
2019-05-15 11:44 UTC
Requires
- php: >=7.0
- alcaeus/mongo-php-adapter: ^1.1
- doctrine/mongodb-odm: ^1.2
- doctrine/mongodb-odm-bundle: ^3.4
- symfony/config: ~3.4.0
- symfony/console: ~3.4.0
- symfony/dependency-injection: ~3.4.0
- symfony/event-dispatcher: ~3.4.0
- symfony/filesystem: ~3.4.0
- symfony/finder: ~3.4.0
- symfony/http-foundation: ~3.4.0
- symfony/http-kernel: ~3.4.0
- symfony/monolog-bundle: ^3.1.0
- symfony/polyfill-apcu: ^1.0
- symfony/property-access: ~3.4.0
- symfony/routing: ~3.4.0
- symfony/serializer: ~3.4.0
- symfony/stopwatch: ~3.4.0
- symfony/yaml: ~3.4.0
Requires (Dev)
- phpstan/phpstan: ^0.11
- phpstan/phpstan-deprecation-rules: ^0.11
- phpstan/phpstan-symfony: ^0.11
- squizlabs/php_codesniffer: ^3.3
- symfony/browser-kit: ~3.4.0
- symfony/css-selector: ~3.4.0
- symfony/debug: ~3.4.0
- symfony/dom-crawler: ~3.4.0
- symfony/framework-bundle: ~3.4.0
- symfony/phpunit-bridge: ~3.4.0
- symfony/process: ~3.4.0
- symfony/var-dumper: ~3.4.0
- symfony/web-server-bundle: ~3.4.0
Provides
- ext-mongo: *
README
General
Core technical features, base for other ATS bundles
Features & Capabilities
CSVResponse type:
- ✔️ Provides wrapper ontop of the Symfony's Response object to handle CSV downloads
Commands:
- ✔️ Command events subscriber
- ✔️ Doctrine MongoDB Bad References Check Command
Managers:
- AbstractBaseManager for pattern enforcement
Services & Utilities:
- ️✔ String Wrapper/Helper class
Setup
1- Update your composer.json to add ATS private packagist:
{
"repositories": [
{
"type": "composer",
"url": "https://packagist.ats-digital.com"
}
],
}
2- Install the bundle in your application
$ php composer require ats/core-bundle
3- Register the bundle in the AppKernel
<?php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),
new ATS\CoreBundle\ATSCoreBundle(),
// ...
];
}
// ...
}
Configuration
N/A
HOWTO:
Q: How to enable MongoDB full text Search ?
A:
- Annotate the Document class with
/** * @ODM\Document() * @ODM\Index(keys={"username"="text"}) * ... */
- Update the database indexes