Simplify getting of class name.

This commit is contained in:
David Molineus
2015-01-22 11:59:19 +01:00
parent 25d4dace71
commit b65bcbff9f
5 changed files with 5 additions and 40 deletions

View File

@@ -26,13 +26,6 @@ use Netzmacht\LeafletPHP\Plugins\Loading\SpinJsLoadingControl;
*/
class LoadingControlMapper extends AbstractControlMapper
{
/**
* Class of the definition being created.
*
* @var string
*/
protected static $definitionClass = 'Netzmacht\LeafletPHP\Plugins\Loading\LoadingControl';
/**
* Layer type.
*
@@ -49,7 +42,7 @@ class LoadingControlMapper extends AbstractControlMapper
return 'Netzmacht\LeafletPHP\Plugins\Loading\SpinJsLoadingControl';
}
return parent::getClassName($model, $mapper, $bounds);
return 'Netzmacht\LeafletPHP\Plugins\Loading\LoadingControl';
}
/**