testImage.php 469 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Fastknife\Domain\Factory;
  3. require 'autoload.php';
  4. $config = require '../src/config.php';
  5. function showBlock()
  6. {
  7. global $config;
  8. $factory = new Factory($config);
  9. $blockImage = $factory->makeBlockImage();
  10. $blockImage->run();
  11. $blockImage->echo();
  12. }
  13. function showWord()
  14. {
  15. global $config;
  16. $factory = new Factory($config);
  17. $blockImage = $factory->makeWordImage();
  18. $blockImage->run();
  19. $blockImage->echo();
  20. }
  21. showWord();