- Issue created by @fjgarlin
- ๐บ๐ธUnited States tr Cascadia
This appears to be related to parsing
core.services.yml, which also causes other problems that I discuss in ๐ Many service names do not show up in 11.x documentation ActiveIn this case,
core.services.ymldefines thefile_systemservice like this:file_system: class: Drupal\Core\File\FileSystem arguments: ['@stream_wrapper_manager', '@settings'] Drupal\Core\File\FileSystemInterface: '@file_system'So here, "Drupal\Core\File\FileSystemInterface" is actually a STRING alias for the
file_systemservice - that's what's showing up in your search. It's NOT a class name even though it appears to be one.This syntax in
core.services.ymlis for Symfony to do autowiring of services - Symfony can now automatically inject thefile_systemservice by recognizing either theFileSystemclass name or theFileSystemInterfaceinterface name in the constructor arguments to other services, instead of having to specify@file_systemin an arguments list for those other services. - ๐ช๐ธSpain fjgarlin
Oh, that explains the weird fully namespaced first choice there, it's the alias that seems to be messing things around. Wondering if we can just ignore aliases in this case, I'm not too familiar with the autowiring from Symfony to know whether it's something relevant that needs to be there, parsed and processed, or if we can just ignore it.
- ๐ช๐ธSpain fjgarlin
I'm also wondering if the parsing of those aliases is actually making it ignore the service right below them. That could explain ๐ Many service names do not show up in 11.x documentation Active .
- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
If I enter FileSystemInterface in the Search drupal 11.x search box, I get only a result: the interface itself.
Drupal\Core\File\FileSystemInterface, which would take to the service page, is not shown.
- ๐ฎ๐นItaly apaderno Brescia, ๐ฎ๐น
Actually, I cannot even get to a service page when I search for file_system, the service name.
- ๐บ๐ธUnited States tr Cascadia
@avpaderno: That's what I reported in ๐ Many service names do not show up in 11.x documentation Active
- ๐จ๐ฆCanada Charlie ChX Negyesi ๐Canada
ghost of drupal past โ made their first commit to this issueโs fork.
-
fjgarlin โ
committed d15ee8e1 on 2.x authored by
ghost of drupal past โ
Issue #3446337 by ghost of drupal past, fjgarlin: Core services...
-
fjgarlin โ
committed d15ee8e1 on 2.x authored by
ghost of drupal past โ
Automatically closed - issue fixed for 2 weeks with no activity.