What's different between \Phalcon\Mvc\User\Component and Phalcon\Mvc\User\Plugin

StackOverflow https://stackoverflow.com/questions/12879284

  •  07-07-2021
  •  | 
  •  

Question

There are \Phalcon\Mvc\User\Component and Phalcon\Mvc\User\Plugin in Phalcon. In the sample invo, Phalcon\Mvc\User\Plugin is used for EventsManager in here. In mvc sample, Phalcon\Mvc\User\Component is used in here. I wonder what is the difference between these two classes.

Était-ce utile?

La solution

Actually, both classes are currently the same. The more we extend the framework, specific functionality may be added to aid building mvc plugins and user components

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top