Replies: 4 comments
-
Yes it is possible, try via https://docs.zephir-lang.com/0.12/en/config#external-dependencies |
Beta Was this translation helpful? Give feedback.
-
Can you please provide an example, how to declare php classes? Because i see only zep files in documentation |
Beta Was this translation helpful? Give feedback.
-
For example, i want to call Model::create method, but getting error. Instead of this i tried to do something like call_user_func([new Model(), “create”]) or call_user_func(“Model::create”) and it works |
Beta Was this translation helpful? Give feedback.
-
Create is not static, have you tried instantiating the class and calling |
Beta Was this translation helpful? Give feedback.
-
I'm trying to call external class method from webonyx/graphql-php
This code causes error:
Seems like there is only one way to do this (very dirty way):
Beta Was this translation helpful? Give feedback.
All reactions