Commit 57919b8 1 parent 470dd0d commit 57919b8 Copy full SHA for 57919b8
File tree 4 files changed +22
-4
lines changed
view/zf2-entity-audit/index
4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 9
9
use ZF2EntityAudit \EventListener \LogRevisionsListener ;
10
10
use ZF2EntityAudit \View \Helper \DateTimeFormatter ;
11
11
use ZF2EntityAudit \View \Helper \User as UserBlock ;
12
-
12
+ use ZF2EntityAudit \ View \ Helper \ Dump ;
13
13
use Zend \ModuleManager \Feature \ConsoleUsageProviderInterface ;
14
14
use Zend \Console \Adapter \AdapterInterface as Console ;
15
15
@@ -100,6 +100,10 @@ public function getViewHelperConfig()
100
100
$ helper ->setEntityManager ($ em );
101
101
$ helper ->setZfcUserEntityClass ($ config ['zf2-entity-audit ' ]['zfcuser.entity_class ' ]);
102
102
return $ helper ;
103
+ },
104
+ 'Dump ' => function ($ sm ){
105
+ $ helper = new Dump ();
106
+ return $ helper ;
103
107
}
104
108
)
105
109
);
Original file line number Diff line number Diff line change 4
4
5
5
class Version
6
6
{
7
- const VERSION = '0.2-ALPHA ' ;
7
+ const VERSION = '0.2-STABLE ' ;
8
8
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace ZF2EntityAudit \View \Helper ;
3
+
4
+ use Zend \View \Helper \AbstractHelper ;
5
+ use Doctrine \Common \Util \Debug ;
6
+
7
+ class Dump extends AbstractHelper
8
+ {
9
+
10
+ public function __invoke ($ object )
11
+ {
12
+ return Debug::dump ($ object );
13
+ }
14
+ }
Original file line number Diff line number Diff line change 50
50
<?php echo $ this ->escapeHtml ($ ce ->getClassName ()); ?>
51
51
</span>
52
52
</td>
53
- <td><?php var_dump ($ ce ->getEntity ()); ?> </td>
53
+ <td><?php $ this -> Dump ($ ce ->getEntity ()); ?> </td>
54
54
</tr>
55
55
<? endforeach ; ?>
56
56
</tbody>
57
57
58
58
</table>
59
59
</div>
60
- </div>
60
+ </div>
You can’t perform that action at this time.
0 commit comments