Skip to content

Missing robots.txt in the web directory #7

@brambaud

Description

@brambaud

There is no symlink to the robots.txt in the web directory.

Is this the wanted behavior? If yes, why?

Expected behavior

A symlink to the robots.txt should exist in the web directory.

Actual behavior

There is no symlink to the robots.txt in the web directory.

Steps to reproduce

  1. Install and configure drupal-paranoia as explained in the documentation with a based drupal-composer/drupal-project project.
  2. Check the web directory: there is no symlink to the robots.txt

Possible solutions

  1. Add the robots.txt to the $assetFileTypes property of the \DrupalComposer\DrupalParanoia\Installer class.
  2. Add a configuration option like drupal-web-dir-extra-asset-files-types that will be merged with the $assetFileTypes property.
  3. Dispatch an event at the end of the \DrupalComposer\DrupalParanoia\Installer::install() method to let people extend as needed.

IMHO the event dispatcher is the best solution as it will be possible to extend the plugin.

I'll provide a PR when we'll agreed on what to do :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions