mark search service provider as private

This commit is contained in:
2020-07-28 14:54:16 +02:00
parent 9b4a71ef8b
commit c74f242050
9 changed files with 62 additions and 31 deletions

View File

@@ -121,6 +121,7 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
$loader->load('services/cache.yml');
$loader->load('services/templating.yml');
$loader->load('services/timeline.yml');
$loader->load('services/search.yml');
$this->configureCruds($container, $config['cruds'], $loader);
}

View File

@@ -18,7 +18,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace Chill\MainBundle\DependencyInjection;
namespace Chill\MainBundle\DependencyInjection\CompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
@@ -33,13 +33,13 @@ class SearchableServicesCompilerPass implements CompilerPassInterface
*/
public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('chill.main.search_provider')) {
throw new \LogicException('service chill.main.search_provider '
if (!$container->hasDefinition('chill_main.search_provider')) {
throw new \LogicException('service chill_main.search_provider '
. 'is not defined.');
}
$definition = $container->getDefinition(
'chill.main.search_provider'
'chill_main.search_provider'
);
$taggedServices = $container->findTaggedServiceIds(