symfony-cmf / resource-bundle
Bundle which facilitates document resource location
Installs: 185 823
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 4
Open Issues: 4
Type:symfony-bundle
Requires
- php: ^7.1
- symfony-cmf/resource: ^1.0
- symfony/framework-bundle: ^2.8 || ^3.3 || ^4.0
- symfony/options-resolver: ^2.8 || ^3.3 || ^4.0
Requires (Dev)
- doctrine/phpcr-odm: ^1.4|^2.0
- symfony-cmf/testing: ^2.1.8
- symfony/phpunit-bridge: ^3.3 || ^4.0
Suggests
- doctrine/phpcr-bundle: To enable support for the PHPCR ODM documents
- doctrine/phpcr-odm: To enable support for the PHPCR ODM documents (^1.3)
This package is auto-updated.
Last update: 2021-09-16 14:55:55 UTC
README
Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the Routing component and RoutingBundle, which are still in active use by other projects.
This repository will no longer be upgraded and marked as abandoned, but will be kept available for legacy projects or if somebody wants to experiment with the CMF.
You can contact us in the #symfony_cmf channel of the Symfony devs slack.
Symfony CMF Resource Bundle
Branch | Travis | Coveralls |
---|---|---|
master |
This package is part of the Symfony Content Management Framework (CMF) and licensed under the MIT License.
This bundle provides object resource location services based on Puli.
Examples:
- Static document path mapping: Map the path
/routes
to/cms/routes
- Dynamic document resolution: Map the path
/routes
to/cms/<current site>/routes
. - Access documents at a static location: Map
/role/menu/main
to/cms/menus/main-menu
.
The first example could use the existing CMF base route configuration to resolve paths.
The benefit of the above two examples would be most strongly felt in association with another component which would provide a context for the document resource resolution.
For example, a Site
which is matched against the incoming hostname would
provide the context with which to resolve the documents.
Requirements
- PHP 7.1 / 7.2
- Symfony 2.8 / 3.3 / 3.4 / 4.0
- See also the
require
section of composer.json
Documentation
For the install guide and reference, see:
See also:
- All Symfony CMF documentation - complete Symfony CMF reference
- Symfony CMF Website - introduction, live demo, support and community links
Support
For general support and questions, please use StackOverflow.
Contributing
Pull requests are welcome. Please see our CONTRIBUTING guide.
Unit and/or functional tests exist for this package. See the Testing documentation for a guide to running the tests.
Thanks to everyone who has contributed already.
License
This package is available under the MIT license.