-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a PSR-4 loading script to allow Smarty to be used without Composer #1017
Conversation
Would you consider letting me recreate the $smarty = new Smarty(); // Smarty 3.x and 4.x
// Versus
$smarty = new Smarty\Smarty(); // Smarty 5.x |
Yes, that seems fine! |
Excellent. I recreated the |
PR updated with your requested fixes. |
@wisskid do you need anything else from me on this? |
@scottchiefbaker this has been merged (with a changelog) as #1019. Thanks! |
This is to help address #999. I created a fake "class" script that acts as a PSR-4 loading script. For Smarty 3.x and 4.x I would instantiate Smarty with:
With this new script I can instantiate Smarty 5.x with:
This should help backwards compatible usability for old users like me. It'd be great if this script could live in
/libs/
to be 99% backwards compatible, but that directory doesn't exist anymore.