22
33## Overview
44
5- The Dispatcher component in Zemit is a dynamic and essential element that acts as a liaison between the routing layer
5+ The Dispatcher component in Phalcon Kit is a dynamic and essential element that acts as a liaison between the routing layer
66and the application's execution logic. Its primary function is to interpret and process requests as directed by the
77Router, ensuring each request is handled by the correct module, controller, task, or action, accompanied by relevant
8- parameters. To cater to different operational environments, Zemit employs two specialized types of dispatchers:
8+ parameters. To cater to different operational environments, Phalcon Kit employs two specialized types of dispatchers:
99
10- - ** ` \Zemit \Cli\Dispatcher ` ** : This dispatcher is specifically designed for handling command-line interfaces (CLI) and
10+ - ** ` \PhalconKit \Cli\Dispatcher ` ** : This dispatcher is specifically designed for handling command-line interfaces (CLI) and
1111 Server API (SAPI) interactions. It extends the functionality
1212 of [ ` \Phalcon\Cli\Dispatcher ` ] ( https://docs.phalcon.io/latest/api/phalcon_cli/#clidispatcher ) {: target ="_ blank"},
1313 providing a tailored experience for non-web-based applications.
14- - ** ` \Zemit \Mvc\Dispatcher ` ** : Focused on web-based applications, this dispatcher manages web requests by
14+ - ** ` \PhalconKit \Mvc\Dispatcher ` ** : Focused on web-based applications, this dispatcher manages web requests by
1515 extending [ ` \Phalcon\Mvc\Dispatcher ` ] ( https://docs.phalcon.io/latest/api/phalcon_mvc/#mvcdispatcher ) {: target ="_
1616 blank"}. It ensures that web requests are routed to the appropriate controllers and actions within the MVC framework.
1717
@@ -27,9 +27,9 @@ For an in-depth understanding of the underlying concepts and capabilities, explo
2727 The issue arises from the potential mixing of parameter order, which can render the method parameters unreliable in
2828 various scenarios and use cases.
2929
30- !!! danger "Zemit 's Approach to Parameter Passing"
31- To ensure stability and predictability in handling method parameters, Zemit modifies this behavior. Only parameters with
32- integer keys are passed to the action method parameters in Zemit 's dispatcher. This approach mitigates the risk of
30+ !!! danger " Phalcon kit 's Approach to Parameter Passing"
31+ To ensure stability and predictability in handling method parameters, Phalcon Kit modifies this behavior. Only parameters with
32+ integer keys are passed to the action method parameters in Phalcon Kit 's dispatcher. This approach mitigates the risk of
3333 parameter order mix-up, enhancing the reliability of your application's routing and parameter handling mechanisms.
3434
3535### Dispatching Process
@@ -42,28 +42,28 @@ At its core, dispatching in an MVC application, as facilitated by `\Phalcon\Mvc\
42423 . ** Controller Instantiation** : The corresponding controller is instantiated based on the extracted information.
43434 . ** Action Execution** : The designated action within the controller is executed, handling the request as intended.
4444
45- Zemit 's Dispatcher enhances this process by integrating it seamlessly with the framework's architecture, ensuring
45+ Phalcon kit 's Dispatcher enhances this process by integrating it seamlessly with the framework's architecture, ensuring
4646efficient and effective handling of both web and CLI requests.
4747
4848## Benefits and Features
4949
50- By extending Phalcon's native dispatchers, Zemit inherits all the flexibility, performance, and features of the Phalcon
50+ By extending Phalcon's native dispatchers, Phalcon Kit inherits all the flexibility, performance, and features of the Phalcon
5151framework while adding significant enhancements:
5252
5353### Cyclic Routing Prevention
5454
5555A common issue in dispatching is "_ Dispatcher has detected a cyclic routing causing
56- stability problems._ " This happens when there's an endless forwarding loop in the application. Zemit 's Dispatcher can
56+ stability problems._ " This happens when there's an endless forwarding loop in the application. Phalcon Kit 's Dispatcher can
5757automatically detect and prevent such single-hop cyclic routing issues, enhancing application stability. However, it's
5858important to note that it doesn’t resolve multiple-hop cycling issues, as these often involve complex scenarios that
5959require developer intervention.
6060
61- ### Business Rule Implementation in Zemit Dispatcher
61+ ### Business Rule Implementation in Phalcon Kit Dispatcher
6262
63- The Zemit Dispatcher Service Provider is designed to automate and handle several vital aspects of application management
63+ The Phalcon Kit Dispatcher Service Provider is designed to automate and handle several vital aspects of application management
6464and routing. This configuration not only streamlines the development process but also ensures consistent and secure
6565application behavior across different environments. Here's a breakdown of the key business rules automatically managed
66- by the Zemit Dispatcher:
66+ by the Phalcon Kit Dispatcher:
6767
6868- ** CORS and Preflight Requests** : The dispatcher is equipped to handle Cross-Origin Resource Sharing (CORS) and
6969 preflight requests, ensuring that your application can safely interact with resources from different domains as per
@@ -81,7 +81,7 @@ by the Zemit Dispatcher:
8181 debugging and monitoring. The dispatcher logs these events, providing valuable insights into the application's routing
8282 behavior and performance.
8383
84- - ** Support for HMVC Architecture** : Zemit 's dispatcher supports forwarding in multi-module architectures, making it
84+ - ** Support for HMVC Architecture** : Phalcon Kit 's dispatcher supports forwarding in multi-module architectures, making it
8585 ideal for applications following a Hierarchical Model-View-Controller (HMVC) pattern. This capability allows modules
8686 to request actions from other modules, fostering a highly modular and flexible application structure.
8787
@@ -93,7 +93,7 @@ by the Zemit Dispatcher:
9393 by allowing default namespace settings. This feature streamlines the organization of controllers and models within
9494 various modules, enhancing the structure and readability of the codebase.
9595
96- The Zemit Dispatcher's automated approach to managing crucial business rules significantly enhances the application's
96+ The Phalcon Kit Dispatcher's automated approach to managing crucial business rules significantly enhances the application's
9797architecture on multiple fronts:
9898
9999- ** Simplified Development** : By automating complex processes like CORS handling, security enforcement, and maintenance
@@ -112,8 +112,8 @@ architecture on multiple fronts:
112112 reduces overhead and enhances efficiency. This efficiency is particularly beneficial in applications with complex
113113 routing needs, where minimizing performance bottlenecks is crucial.
114114
115- Incorporating these advanced features, Zemit ’s Dispatcher not only makes request handling more efficient but also plays
115+ Incorporating these advanced features, Phalcon Kit ’s Dispatcher not only makes request handling more efficient but also plays
116116a vital role in reducing the complexity typically associated with routing and dispatching in web applications.
117- Developers leveraging Zemit can expect a more intuitive, secure, and manageable routing process, enabling them to build
117+ Developers leveraging Phalcon Kit can expect a more intuitive, secure, and manageable routing process, enabling them to build
118118sophisticated web solutions with ease.
119119
0 commit comments