Back to LegacyComponent class

Method __construct

public
__construct
(string $component)
LegacyComponentContainer constructor.
Parameters
  • string $component The component
Since
  • 4.0.0

Method __construct - Source code

/**
 * LegacyComponentContainer constructor.
 *
 * @param   string  $component  The component
 *
 * @since  4.0.0
 */
public function __construct(string $component)
{
    $this->component = str_replace('com_', '', $component);
}