A closer look at Invokable classes in PHP
In PHP, Invokables refer to any class that may be instantiated without any constructor arguments. In other words, one should be able to create an instance solely be calling new $className(). To implement an invokable class, one needs to use __invoke(...
khangnhd.hashnode.dev4 min read