You are here

public function SearchByPageService::create in Search by Page 8

Create SearchByPage Service.

Parameters

ContainerInterface $container: Container interface.

Return value

SearchByPageService

File

src/Services/SearchByPageService.php, line 46
Search By Page Service and helper methods.

Class

SearchByPageService

Namespace

Drupal\search_by_page\Services

Code

public function create(ContainerInterface $container) {
  return new static($container
    ->get('config.factory'), $container
    ->get('database'));
}