File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -126,13 +126,13 @@ COPY --chown=${USER}:${USER} --from=composer-deps /app/vendor ./vendor
126126# Copy composer files (needed for autoloader generation)
127127COPY --chown=${USER}:${USER} composer.json composer.lock ./
128128
129- # Generate optimized autoloader with vendor already in place
129+ # Copy application code first so autoloader can resolve all files
130+ COPY --chown=${USER}:${USER} . .
131+
132+ # Generate optimized autoloader now that all app files are present
130133RUN composer dump-autoload --classmap-authoritative --no-dev && \
131134 composer clear-cache
132135
133- # Copy application code
134- COPY --chown=${USER}:${USER} . .
135-
136136# Create necessary Laravel directories
137137RUN mkdir -p \
138138 storage/framework/sessions \
Original file line number Diff line number Diff line change 5656});
5757
5858test ('translation service handles API failures gracefully ' , function () {
59+ Cache::flush ();
60+
5961 $ service = new TranslationService ();
6062
6163 Http::fake ([
You can’t perform that action at this time.
0 commit comments