Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentchalnot/sidusbasebundle
Provides various helpers to build a Symfony vendor or application
https://github.com/vincentchalnot/sidusbasebundle
Last synced: 4 days ago
JSON representation
Provides various helpers to build a Symfony vendor or application
- Host: GitHub
- URL: https://github.com/vincentchalnot/sidusbasebundle
- Owner: VincentChalnot
- License: mit
- Created: 2018-04-09T15:54:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T12:18:43.000Z (9 months ago)
- Last Synced: 2024-10-30T15:54:26.722Z (18 days ago)
- Language: PHP
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sidus/BaseBundle Documentation
==================================## Service loading
If you simply inherit from the SidusBaseExtension, all the YAML files present in this directory will be loaded:
````./Resources/config/services````````php
loadCustomConstraints([
['Regex' => ['pattern' => '/^[a-z0-9]+(?:[-\_][a-z0-9]+)*$/']],
['NotNull' => null],
]);foreach ($constraints as $constraint) {
$violations = $validator->validate($data, $constraint);
// Do stuff with the violations
}
````## Forms
The ````ChoiceTypeExtension```` allows choice form types to work with iterable objects. You don't need to do anything.
A new option is available for any form type: ```block_prefix``` allows you to directly choose a custom block prefix for
form rendering.## Serializer
See [SidusBaseSerializerBundle](https://github.com/VincentChalnot/SidusBaseSerializerBundle) for additional support.