Skip to content

Preloading file is missing from the website-skeleton app #34611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
murphpdx opened this issue Nov 25, 2019 · 6 comments
Closed

Preloading file is missing from the website-skeleton app #34611

murphpdx opened this issue Nov 25, 2019 · 6 comments

Comments

@murphpdx
Copy link

Symfony version(s) affected: 5.0

Description

A preload file was generated at var/cache/dev/srcApp_KernelDevDebugContainer.preload.php but is now missing.

How to reproduce

Create a new website-skeleton app and check for the file.
Possible Solution

Additional context

@ahmedash95
Copy link
Contributor

I tried

  • $ composer create-project symfony/website-skeleton my_project
  • cd my_project && symfony serve
    and the app works fine

@murphpdx
Copy link
Author

I'm not having any trouble running the app. I want to use the preload file, that was added here: #32032
We were using this to test preloading but the file has since gone away and I'm not sure if that was a mistake?

@kricha
Copy link

kricha commented Nov 30, 2019

I also have this problem. No preload file in skeleton or my apps.

@Plopix
Copy link
Contributor

Plopix commented Dec 1, 2019

have a look here, it might be the same issue. #34750

@nicolas-grekas
Copy link
Member

Can you please confirm that your app is in a folder at the root of the filesystem? e.g. /app/src/Kernel.php? What's the full path to your Kernel.php file otherwise?

@kricha
Copy link

kricha commented Dec 2, 2019

@nicolas-grekas yes, my application is in /app folder.

@fabpot fabpot closed this as completed Dec 2, 2019
fabpot added a commit that referenced this issue Dec 2, 2019
…p is in /app (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Fix making the container path-independent when the app is in /app

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34750, Fix #34611
| License       | MIT
| Doc PR        | -

Right now, we mandate the app to be nested in a directory of level 2 minimum. This means apps cannot be made path-independent if they are built in e.g. `/app`.

Commits
-------

b33b9a6 [DI] Fix making the container path-independent when the app is in /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants