https://github.com/dantleech/objectinfobundle
CMF Bundle for inferring information from objects, e.g. a title, edit/view/delete URLs, icons, etc.
https://github.com/dantleech/objectinfobundle
Last synced: over 1 year ago
JSON representation
CMF Bundle for inferring information from objects, e.g. a title, edit/view/delete URLs, icons, etc.
- Host: GitHub
- URL: https://github.com/dantleech/objectinfobundle
- Owner: dantleech
- Created: 2014-12-24T09:22:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-27T18:16:52.000Z (over 11 years ago)
- Last Synced: 2025-01-30T15:44:22.311Z (over 1 year ago)
- Language: PHP
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Symfony CMF ObjectInfo Bundle
[](http://travis-ci.org/symfony-cmf/ObjectInfoBundle)
[](https://packagist.org/packages/symfony-cmf/object-info-bundle)
[](https://packagist.org/packages/symfony-cmf/object-info-bundle)
This bundle is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/)
and licensed under the [MIT License](LICENSE).
This bundle allows you to access inferred information from objects, for
example:
````php
$object = new Product();
// ...
$objectInfoManager->provideInfo($object);
echo $info['route']['edit']; // http://path/to/edit?id=123
echo $info['title']; // "My product title"
echo $info['icon']; // /path/to/icon.png
````
## Requirements
* Symfony 2.2.x
* See also the `require` section of [composer.json](composer.json)
## Documentation
Not yet.
* [All Symfony CMF documentation](http://symfony.com/doc/master/cmf/index.html) - complete Symfony CMF reference
* [Symfony CMF Website](http://cmf.symfony.com/) - introduction, live demo, support and community links
## Contributing
Pull requests are welcome. Please see our
[CONTRIBUTING](https://github.com/symfony-cmf/symfony-cmf/blob/master/CONTRIBUTING.md)
guide.
Unit and/or functional tests exist for this bundle. See the
[Testing documentation](http://symfony.com/doc/master/cmf/components/testing.html)
for a guide to running the tests.
Thanks to
[everyone who has contributed](https://github.com/symfony-cmf/ObjectInfoBundle/contributors) already.
## Running the tests