PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,23 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use ProxyManager\Factory\AccessInterceptorValueHolderFactory;
class Foo
{
public function doFoo()
{
echo "Foo!\n";
}
}
$factory = new AccessInterceptorValueHolderFactory();
$proxy = $factory->createProxy(
new Foo(),
array('doFoo' => function () { echo "pre-foo!\n"; }),
array('doFoo' => function () { echo "post-foo!\n"; })
);
$proxy->doFoo();