Maslosoft Mangan API
Class NotFoundResolver
Not found resolver
Helper which can be used to resolve not found classes of embedded documents. This can be usefull if embedded document class was renamed in code, but was left in database.
Use this in document class constructor, ie:
public function __construct() { $resolver = new Maslosoft\Mangan\Helpers\NotFoundResolver($this); $resolver->classMap = [ 'LegacyName' => 'Company\Models\UberName' ]; }
Namespace: Maslosoft\Mangan\Helpers
Author: Piotr Maselkowski
Located at Helpers/NotFoundResolver.php
Author: Piotr Maselkowski
Located at Helpers/NotFoundResolver.php
Methods summary
public
|
#
__construct( Maslosoft\Addendum\Interfaces\AnnotatedInterface $document, string[] $classMap = [] )
First param is document which could have some obsolete classes stored in database. Class map should map obsolete names with new names. |
Constants summary
string |
EventClassNotFound
|
#
'classNotFound'
|
API documentation generated by ApiGen