How baconfist/skyajax works
SkyAjax-Bundle is a Symfony library for standardized AJAX communication. An application controller obtains the bundle service, which exposes a shared response; that response serializes plugin commands as JSON for the client. The bundle also includes a JavaScript client and an AJAX-method listener. The README gives little workflow detail, and the client/listener excerpts are unavailable, so their runtime connections are left unverified rather than inferred.
Main entry points: Response.php JSON response · Command.php Command data · SkyAjaxController.php AJAX controller · SkyAjaxControllerTrait.php Controller trait
Components 17
Symfony integration
- AJAX controller
source/SkyDiablo/Util/SkyAjaxBundle/Controller/SkyAjaxController.php - Controller trait
source/SkyDiablo/Util/SkyAjaxBundle/Controller/Traits/SkyAjaxControllerTrait.php - AJAX service
source/SkyDiablo/Util/SkyAjaxBundle/Service/SkyAjaxService.php - Method listener
source/SkyDiablo/Util/SkyAjaxBundle/EventListener/AjaxMethodListener.php - Bundle extension
source/SkyDiablo/Util/SkyAjaxBundle/DependencyInjection/SkyDiabloUtilSkyAjaxExtension.php - Bundle configuration
source/SkyDiablo/Util/SkyAjaxBundle/DependencyInjection/Configuration.php
Response commands
- JSON response
source/SkyDiablo/Util/SkyAjaxBundle/Response/Response.php - Command data
source/SkyDiablo/Util/SkyAjaxBundle/Entity/Command.php - Invalid command error
source/SkyDiablo/Util/SkyAjaxBundle/Exception/InvalidCommandException.php - Plugin contract
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/PluginInterface.php - Alert command
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Alert.php - Assign command
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Assign.php - Evaluate command
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Evaluate.php - Redirect command
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Redirect.php
Browser client
- SkyAjax client
source/SkyDiablo/Util/SkyAjaxBundle/Resources/public/javascript/SkyAjax.js
Other components
- Application
- Browser
Connections 15
- AJAX controller → Controller trait: uses
source/SkyDiablo/Util/SkyAjaxBundle/Controller/SkyAjaxController.php - Controller trait → AJAX service: fetches
source/SkyDiablo/Util/SkyAjaxBundle/Controller/Traits/SkyAjaxControllerTrait.php - AJAX service → JSON response: creates
source/SkyDiablo/Util/SkyAjaxBundle/Service/SkyAjaxService.php - Bundle extension → Bundle configuration: loads
source/SkyDiablo/Util/SkyAjaxBundle/DependencyInjection/SkyDiabloUtilSkyAjaxExtension.php - JSON response → Plugin contract: reads commands
source/SkyDiablo/Util/SkyAjaxBundle/Response/Response.php - JSON response → Command data: serializes
source/SkyDiablo/Util/SkyAjaxBundle/Response/Response.php - JSON response → Invalid command error: throws
source/SkyDiablo/Util/SkyAjaxBundle/Response/Response.php - Alert command → Command data: builds
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Alert.php - Assign command → Command data: builds
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Assign.php - Evaluate command → Command data: builds
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Evaluate.php - Redirect command → Command data: builds
source/SkyDiablo/Util/SkyAjaxBundle/Response/Plugin/Redirect.php - Application → AJAX controller: uses
- JSON response → SkyAjax client: returns JSON
- SkyAjax client → Browser: runs in
- Method listener → AJAX controller: dispatches