docs
/
examples
/
CanDI pattern tutorial
Service Pattern
PHP code
MyService instance
java_bean("myService")
MyServiceBean[MyStartupBean: initial value]
$myService->getMessage()
MyStartupBean: initial value
Architecture
index.jsp
index.php
Set the service message blue (/set?color=blue)
Set the service message red (/set?color=red)
Get the service message (/get)