Skip to content
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

Upgrade Stepup-RA to run on Symfony 6.4 and PHP 8.2 #313

Merged
merged 204 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 197 commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
2e9bf52
Add docker configs and rebuild the .dist files to reflect the new doc…
quartje Jun 19, 2023
4b46699
Configuring the github actions pipelines for this app
danakim Jun 20, 2023
cd646f4
Adding the dev image and fixing up some naming conventions
danakim Jun 20, 2023
8c2eeb4
Default docker config: Add mailcatcher host
quartje Jul 14, 2023
9e6ae71
Docker config: Make sure all second factors are the same
quartje Jul 14, 2023
fed2a94
Docker config: Add correct loa1.5
quartje Jul 14, 2023
d808143
Docker: Add monolog configuration when running as a container
quartje Aug 21, 2023
66298e0
Rename loa's to a more standard name
quartje Sep 6, 2023
8c3958a
Add repo name to slack notification
phavekes Oct 27, 2023
71ccc3c
Bump symfony/twig-bridge from 4.4.49 to 4.4.51
dependabot[bot] Nov 12, 2023
6a93a99
Fix unit tests
tvdijen Oct 23, 2023
d747775
Merge pull request #306 from OpenConext/feature/docker_configs
quartje Nov 16, 2023
399245b
Bump phpseclib/phpseclib from 3.0.19 to 3.0.34
dependabot[bot] Nov 28, 2023
580f29e
Moving from CMD to ENTRYPOINT
danakim Dec 5, 2023
fa6a780
Moving back to CMD
danakim Dec 6, 2023
c0ddfa0
Removing the dev image
danakim Dec 14, 2023
778516b
Bump phpseclib/phpseclib from 3.0.34 to 3.0.37
dependabot[bot] Mar 4, 2024
93de589
Merge pull request #312 from OpenConext/dependabot/composer/phpseclib…
thijskh Mar 6, 2024
157cbbc
Update and install
parijke Jan 30, 2024
5a92ca5
Fix deprecations
parijke Jan 31, 2024
a8f2193
1st Rector run
parijke Feb 1, 2024
7dbaa0c
Rector remove Action suffix
parijke Feb 1, 2024
6e78353
Repair controller calls
parijke Feb 1, 2024
676397b
Update quality tools
parijke Feb 1, 2024
8e00cb8
Migrate to newer schema
parijke Feb 1, 2024
79ae211
Add types
parijke Feb 1, 2024
216a0c7
Remove obsolete var
parijke Feb 1, 2024
e927c37
Replace session with requeststack
parijke Feb 1, 2024
b42f032
Replace legacy with openconext
parijke Feb 1, 2024
4ca7e85
Move twig files
parijke Feb 1, 2024
173515f
Fix test with requestStack
parijke Feb 1, 2024
0580333
Solve PHPStan error
parijke Feb 1, 2024
a9834fa
Solve PHPStan error
parijke Feb 1, 2024
a79a2c8
PHPstan extensions
parijke Feb 1, 2024
8e32949
Remove obsolete phpdoc
parijke Feb 1, 2024
952983c
Add types
parijke Feb 1, 2024
9077c66
Add types and DI
parijke Feb 1, 2024
d09d626
Replace get with container->get
parijke Feb 1, 2024
600d9f6
Add types and DI
parijke Feb 1, 2024
e67f589
Ran phpcbf
parijke Feb 1, 2024
147628c
DI and removed @Template
parijke Feb 5, 2024
4be8acb
DI and types
parijke Feb 5, 2024
611787c
DI and types
parijke Feb 5, 2024
2281de9
DI and types
parijke Feb 5, 2024
d6de1a9
DI and types
parijke Feb 5, 2024
aa3fe53
DI and types
parijke Feb 5, 2024
7ba92f1
DI and types
parijke Feb 5, 2024
22f7d44
DI and types
parijke Feb 5, 2024
2827c2c
DI and types
parijke Feb 5, 2024
d5055aa
DI and types
parijke Feb 5, 2024
813f65e
DI and types
parijke Feb 5, 2024
6b9cf75
DI and types
parijke Feb 5, 2024
ff9c27f
Add parent call
parijke Feb 5, 2024
ee57896
Add types
parijke Feb 5, 2024
353ad53
Add types
parijke Feb 5, 2024
8a67770
Add types
parijke Feb 5, 2024
55b76ea
Add types
parijke Feb 5, 2024
9b7aeb7
Add types
parijke Feb 5, 2024
6910e30
Add types
parijke Feb 5, 2024
c2be42f
Add types
parijke Feb 5, 2024
be57c26
Add types
parijke Feb 5, 2024
0cfb815
Add types
parijke Feb 5, 2024
deb7464
Add types
parijke Feb 5, 2024
f1e81a2
Add types
parijke Feb 5, 2024
908688d
Add types
parijke Feb 5, 2024
24939b3
Fix deprecations
parijke Feb 5, 2024
345ded4
Fix deprecations
parijke Feb 5, 2024
293012e
Fix deprecations
parijke Feb 5, 2024
e821fc0
Add return types
parijke Feb 5, 2024
6624e12
Add return types
parijke Feb 5, 2024
2077954
Removed unused imports
parijke Feb 5, 2024
5b915e8
Removed unused moment installation
parijke Feb 5, 2024
6c66b4f
Fix deprecations
parijke Feb 5, 2024
49cbb13
Remove deleted service definitions
parijke Feb 5, 2024
1acac3f
Add types
parijke Feb 5, 2024
e3164c4
Run rector
parijke Feb 5, 2024
a1c51dc
Add types
parijke Feb 5, 2024
9f4d4d4
Add types
parijke Feb 5, 2024
1db2181
Remove direct dependency
parijke Feb 8, 2024
cc8373f
Change security check to composer audit
parijke Feb 8, 2024
5cd6445
Change security check to composer audit
parijke Feb 8, 2024
47b56d7
1st Upgrade to 6.x
parijke Feb 8, 2024
9934793
Update dependencies
parijke Feb 8, 2024
7838b18
Add route attribute
parijke Feb 12, 2024
3683b57
Add route attribute
parijke Feb 12, 2024
ecd526c
Change config
parijke Feb 12, 2024
5ad2bfa
Add error bundle
parijke Feb 12, 2024
b229083
Fix phpcbf
parijke Feb 12, 2024
7da5796
Fix tests and config
parijke Feb 12, 2024
ef2f692
Fix tests and config
parijke Feb 12, 2024
6756582
Fix tests and config
parijke Feb 12, 2024
e1c8aaf
Avoid null return
parijke Feb 12, 2024
e27385d
Rename varname
parijke Feb 12, 2024
442b886
Replace files according rules
parijke Feb 12, 2024
fe56cc3
Correct copyright year
parijke Feb 12, 2024
770cb32
Remove more than 1 blank line
parijke Feb 12, 2024
09e3a23
Disable dotenv
parijke Feb 12, 2024
86ecdb3
Use Dependency Injection
parijke Feb 13, 2024
c916f1a
Use Dependency Injection
parijke Feb 13, 2024
6853c09
Create MetadataCollection
parijke Feb 13, 2024
ea9f5ba
Use Dependency Injection
parijke Feb 13, 2024
d0f63fc
Remove obsolete config after renaming the service
parijke Feb 13, 2024
3083c7e
Add phpstan rule to detect debug statements
parijke Feb 13, 2024
15df0c2
Change early returns
parijke Feb 13, 2024
7af7458
Remove getIdentity call
parijke Feb 28, 2024
2d9699a
Add AuthenticatedIdentity
parijke Feb 28, 2024
74618bc
Add roles via contructor
parijke Feb 28, 2024
eafd710
Using ICU format for translations
parijke Feb 29, 2024
249ad6a
Remove dead code
parijke Mar 4, 2024
ea388e8
Remove deprecated transchoice
parijke Mar 4, 2024
133f90f
Add Loa to Authenticated Identity
parijke Mar 5, 2024
a02180d
Get Loa from Authenticated Identity
parijke Mar 5, 2024
2c835a6
Get correct Identity
parijke Mar 5, 2024
24f96bb
Get correct Identity Service
parijke Mar 5, 2024
064f3ce
Replaced vars
parijke Mar 5, 2024
9bc78ea
Added helper methods to get internals of Identity
parijke Mar 5, 2024
f106f37
Fix namespace
parijke Mar 5, 2024
f43f2dd
Fixed on behat runs
parijke Mar 11, 2024
0ee8647
Fix flashbag
parijke Mar 11, 2024
9fa8a2e
Fix return redirect
parijke Mar 11, 2024
ffeba6b
Test double for Yubikey
parijke Mar 12, 2024
c1ed01f
Test double for Yubikey
parijke Mar 12, 2024
3d2aed1
Attribute fix and exception controller
parijke Mar 12, 2024
5b30070
Remove obsolete token
parijke Mar 13, 2024
9e00469
Clean up phpcbf
parijke Mar 13, 2024
4815c8e
Remove unneeded version
parijke Mar 13, 2024
f45b850
Phpstan settings
parijke Mar 13, 2024
c006218
Add Logout handling
parijke Mar 13, 2024
d120bb5
Add phpstan in check
parijke Mar 13, 2024
3e5c113
add phpstan directives
parijke Mar 13, 2024
ff6f20d
Remove dead code
parijke Mar 13, 2024
ebf4014
Integrate in central config
parijke Mar 13, 2024
88abf71
Integrate in central config
parijke Mar 13, 2024
75931c5
Integrate in central config
parijke Mar 13, 2024
134b4ae
Integrate in central config
parijke Mar 13, 2024
62e2867
Integrate in central config
parijke Mar 13, 2024
ff7114b
Integrate in central config
parijke Mar 13, 2024
f689dc1
Integrate in central config
parijke Mar 13, 2024
b40f4ce
Integrate in central config
parijke Mar 13, 2024
1c18ab6
Integrate in central config
parijke Mar 13, 2024
41109cf
Integrate in central config
parijke Mar 13, 2024
fb3a602
Integrate in central config
parijke Mar 13, 2024
800cd9e
Remove obsolete code
parijke Mar 13, 2024
aed2e20
Use alias
parijke Mar 13, 2024
1916039
Use alias
parijke Mar 13, 2024
18294f7
Use alias
parijke Mar 13, 2024
377475a
Remove dead code
parijke Mar 13, 2024
abc6a0e
Remove dead code
parijke Mar 13, 2024
31a336e
Remove dead code
parijke Mar 13, 2024
65fc86a
Github actions update
parijke Mar 13, 2024
b42303b
Github actions update
parijke Mar 13, 2024
11b6b52
Add php 8.2
parijke Mar 13, 2024
3fd5acb
Set nodejs version
parijke Mar 13, 2024
a439eef
Set nodejs version
parijke Mar 13, 2024
671e5db
Set nodejs version
parijke Mar 13, 2024
6569fdc
Set nodejs version
parijke Mar 13, 2024
9bff656
Set nodejs version
parijke Mar 13, 2024
e088385
Set node version
parijke Mar 14, 2024
06a6ed0
Add license check
parijke Mar 14, 2024
a6a6a01
Add license check
parijke Mar 14, 2024
8fb309c
Optimize imports
parijke Mar 22, 2024
b8479cd
Fix review
parijke Mar 22, 2024
a6a018f
Move logo
parijke Mar 22, 2024
5c089f4
Add correct DOB
parijke Mar 22, 2024
030cbc7
Fix Call to an undefined method (phpstan)
parijke Mar 22, 2024
7ef2a7e
Implement method
parijke Mar 22, 2024
c4c7f12
Fix phpstan errors
parijke Mar 22, 2024
a8fd738
Fix phpstan errors
parijke Mar 22, 2024
a974324
Fix phpstan errors
parijke Mar 22, 2024
0d3fdf9
Fix phpstan errors
parijke Mar 22, 2024
4563d3c
Fix phpstan errors
parijke Mar 22, 2024
18946db
Fixed dist parameter
parijke Mar 27, 2024
866685d
Configure all build components to use node20 and php82
quartje Mar 28, 2024
f91d961
GHA: For creating releases the GHA workflow needs more permissions
quartje Mar 28, 2024
2f487e7
Docker build: Use the latest actions and upgrade to php8
quartje Mar 28, 2024
8ff41aa
Fixed monolog
parijke Mar 28, 2024
5613711
Removed rubbish in html
parijke Mar 28, 2024
f71bc38
Moved services_smoketest.yaml to config
parijke Apr 1, 2024
1f92465
Merge and remove remaining package/{env} config
MKodde Apr 11, 2024
464ef04
Ensure MissingRequiredAttributeException end on error page
MKodde Apr 11, 2024
965cf09
Simplify bundle setup
MKodde Apr 11, 2024
a85ed10
Reorganize less and js files
MKodde Apr 11, 2024
b3d9af9
Inject the locales instead of leaving them empty
MKodde Apr 11, 2024
19bb4aa
Remove unused code and cleanup
MKodde Apr 11, 2024
799fd65
Remove RecTokenController definition
MKodde Apr 11, 2024
d0838b4
Remove unused method
MKodde Apr 11, 2024
850e75d
Let PHPMD output in text format
MKodde Apr 11, 2024
36ffd6f
Clean up getTranslation method
MKodde Apr 11, 2024
a46feb3
Re generate PHPStan baseline
MKodde Apr 11, 2024
89e9ec7
Remove security checker from the project
MKodde Apr 11, 2024
9642b70
Remove `app` and `web` folder references
MKodde Apr 11, 2024
1e3e018
Run scrutinizer on default-jammy
MKodde Apr 11, 2024
2d8282c
Rename Kernel namepace
MKodde Apr 11, 2024
caa2175
Update Composer dependencies
MKodde Apr 11, 2024
f3a0b3b
Remove unused dotenv component
MKodde Apr 11, 2024
8708154
Update Symfony version constraints
MKodde Apr 11, 2024
e17a0e6
Sync lockfile and set a version number
MKodde Apr 11, 2024
4fd7771
Revert "Simplify bundle setup"
MKodde Apr 17, 2024
f48e25b
Repair vetting type hints
MKodde Apr 17, 2024
caf2b4b
Upgrade Composer dependencies
MKodde Apr 17, 2024
02a151d
Repair vetting type hint controller
MKodde Apr 17, 2024
707ad50
Remove redundant config option
MKodde Apr 17, 2024
03e3e24
Also the /internal/{info,health} paths must be publically available
thijskh Apr 17, 2024
57d3e0f
GitHub actions workflows:
quartje Apr 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .docheader
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Copyright %regexp:\d{4}% SURFnet %regexp:(B.V.|bv)%
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
68 changes: 68 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: build-push-docker-image

on:
push:
branches: feature/docker_configs
workflow_dispatch:

jobs:
build-push-docker-image:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get the latest release
id: release
uses: robinraju/[email protected]
with:
latest: true
fileName: "*.tar.bz2"

- name: Get commit details for the tag from the latest release
id: commit_details
run: |
GIT_SHA=$(git rev-list -n 1 ${{ steps.release.outputs.tag_name }})
GIT_COMMIT_TIME=$(git show -s --format=%ci ${{ steps.release.outputs.tag_name }})
echo "::set-output name=sha::$GIT_SHA"
echo "::set-output name=commit_time::$GIT_COMMIT_TIME"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set docker labels and tags
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/openconext/stepup-ra/stepup-ra
tags: |
type=ref,event=tag
type=semver,pattern={{version}}
type=sha
type=raw,value=prod

- name: Build and push the Production image
uses: docker/build-push-action@v5
with:
context: .
build-args: |
APP_VERSION=${{ steps.release.outputs.tag_name }}
GIT_SHA=${{ steps.commit_details.outputs.sha }}
GIT_COMMIT_TIME=${{ steps.commit_details.outputs.commit_time }}
file: docker/Dockerfile.prod
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
10 changes: 5 additions & 5 deletions .github/workflows/daily-security-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
uses: andstor/file-existence-action@v2
with:
files: "composer.lock"
- name: Run php local security checker
if: steps.check_composer.outputs.files_exists == 'true'
uses: symfonycorp/security-checker-action@v4
- name: Vulnerability check
run: php composer audit
if: steps.check_composer.outputs.files_exists == 'true'

# node-yarn checks
- name: Check for node-yarn project
Expand Down Expand Up @@ -97,6 +97,6 @@ jobs:
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://static.surfconext.nl/logos/idp/surfnet.png
SLACK_MESSAGE: 'Dependency check failed :crying_cat_face:'
SLACK_TITLE: Dependency check wants attention
SLACK_TITLE: ${{ github.repository }} wants attention
SLACK_USERNAME: NightlySecurityCheck
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
19 changes: 17 additions & 2 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,33 @@ on:
- "*.*.*"
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
timeout-minutes: 10
env:
COMPONENT_NAME: Stepup-RA
if: always()
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: OpenConext/Stepup-Build
ref: master
ref: feature/php82_build

- name: Output the semver tag to the tag variable
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Run release script
run: ./stepup-build.sh ${COMPONENT_NAME} --tag ${{ steps.vars.outputs.tag }}

- name: Grab the archive filename
id: archive
run: |
echo ::set-output name=archive::$(find . -maxdepth 1 -name "$COMPONENT_NAME*.tar.bz2" -printf '%f\n')
echo ::set-output name=shasum::$(find . -maxdepth 1 -name "$COMPONENT_NAME*.sha" -printf '%f\n')

- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -37,6 +43,7 @@ jobs:
body: Auto generated release. Please update these release notes manually.
draft: true
prerelease: false

- uses: actions/[email protected]
name: Upload the release artefact tarbal
env:
Expand All @@ -62,3 +69,11 @@ jobs:
with:
release_id: ${{ steps.create_release.outputs.id }}

after_build:
needs: build
runs-on: ubuntu-latest
steps:
- name: Trigger Docker container build
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build-push-docker-image.yml
69 changes: 25 additions & 44 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,29 @@
name: test-integration
on:
pull_request:
push:
branches: [ master, develop ]
name: Run QA tests (static analysis, lint and unit tests)
on: [pull_request]

jobs:
build:
run-qa-tests:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: /var/www/html/
container:
image: ghcr.io/openconext/openconext-basecontainers/php82-apache2-node20-composer2:latest
volumes:
- .:/var/www/html

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Init environment
run: |
cd ci/docker
docker-compose up -d
- name: Install dependencies
run: |
cd ci/docker && docker-compose exec -T stepup-ra bash -lc '
composer install
yarn
./bin/console assets:install
'
- name: Build frontend assets
run: cd ci/docker && docker-compose exec -T stepup-ra bash -lc 'yarn encore production'
- name: Run test scripts
run: cd ci/docker && docker-compose exec -T stepup-ra bash -lc ' composer test '
- name: Output log files on failure
if: failure()
run: cd ci/docker && docker-compose exec -T stepup-ra -c 'cat var/log/webtest.log'
uses: actions/checkout@v4

- name: Composer install
run: composer install

- name: Yarn install
run: yarn

MKodde marked this conversation as resolved.
Show resolved Hide resolved
- name: build frontend
run: yarn encore prod

- name: Run QA tests
run: composer check
19 changes: 3 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
/web/bundles/
/web/app_dev.php
/web/app_dev.php.dist
/web/app_test.php
/app/bootstrap.php.cache
/web/css/*
/web/js/*
/config/*.crt
/config/*.key
/config/keys
/app/cache/*
/config/legacy/parameters.yaml
/config/legacy/samlstepupproviders_parameters.yaml
/config/legacy/global_view_parameters.yaml
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep
/config/openconext/parameters.yaml
/config/openconext/samlstepupproviders_parameters.yaml
/config/openconext/global_view_parameters.yaml
/build/
/composer.phar
/cache.properties
/app/SymfonyRequirements.php
/app/check.php
/local-php-security-checker
.idea/

Expand Down
6 changes: 6 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
build:
image: default-jammy
environment:
php: 8.2
node: v20

filter:
excluded_paths:
- "*/Tests/*"
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 6.0.0
- Update php8 and Symfony 6.4
parijke marked this conversation as resolved.
Show resolved Hide resolved

## 5.0.5
- Translate remaining [Recovery token] occurrences #303
- Installed security updates for phpseclib/phpseclib and guzzlehttp/psr7
Expand Down
24 changes: 0 additions & 24 deletions app/files/sp_gssp.crt

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import 'bootstrap-less';


import '../../vendor/surfnet/stepup-bundle/src/Resources/public/js/stepup.js';
import '../../src/Surfnet/StepupRa/RaBundle/Resources/public/js/stepup-ra.js';
import './stepup-ra.js';
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

import moment from "moment";

(function ($) {
'use strict';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "../../../../../../../node_modules/bootstrap-less/bootstrap/index";
@import "../../../../../../../node_modules/font-awesome/less/font-awesome";
@import "../../node_modules/bootstrap-less/bootstrap/index";
@import "../../node_modules/font-awesome/less/font-awesome";

.progress-steps {
font-size: 110%;
Expand Down
42 changes: 9 additions & 33 deletions bin/console
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
#!/usr/bin/env php
<?php

use App\Kernel;
use Surfnet\StepupRa\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\ErrorHandler\Debug;

if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
if (!is_file(dirname(__DIR__).'/vendor/autoload.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

set_time_limit(0);
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
require_once dirname(__DIR__).'/config/bootstrap.php';

require dirname(__DIR__).'/vendor/autoload.php';
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

if (!class_exists(Application::class)) {
throw new LogicException('You need to add "symfony/framework-bundle" as a Composer dependency.');
}

$input = new ArgvInput();
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
}

if ($input->hasParameterOption('--no-debug', true)) {
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
}

require dirname(__DIR__).'/config/bootstrap.php';

if ($_SERVER['APP_DEBUG']) {
umask(0000);

if (class_exists(Debug::class)) {
Debug::enable();
}
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$application = new Application($kernel);
$application->run($input);
return new Application($kernel);
};
Loading
Loading